~ubuntu-branches/ubuntu/vivid/httpcomponents-core/vivid

« back to all changes in this revision

Viewing changes to httpcore/src/main/java/org/apache/http/message/BasicHttpResponse.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2014-10-25 23:01:10 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20141025230110-lhr341pbqk6l2loc
Tags: 4.3.3-1
* New upstream release
* Ignore the apache-rat-plugin
* Standards-Version updated to 3.9.6 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
    }
193
193
 
194
194
    public void setLocale(final Locale locale) {
195
 
        this.locale =  Args.notNull(locale, "Locale");
 
195
        this.locale = Args.notNull(locale, "Locale");
196
196
        this.statusline = null;
197
197
    }
198
198
 
212
212
 
213
213
    @Override
214
214
    public String toString() {
215
 
        return getStatusLine() + " " + this.headergroup;
 
215
        final StringBuilder sb = new StringBuilder();
 
216
        sb.append(getStatusLine());
 
217
        sb.append(' ');
 
218
        sb.append(this.headergroup);
 
219
        if (this.entity != null) {
 
220
            sb.append(' ');
 
221
            sb.append(this.entity);
 
222
        }
 
223
        return sb.toString();
216
224
    }
217
225
 
218
226
}