Use StringBuilder instead of StringBuffer
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e9078e80 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e9078e80 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e9078e80 Branch: refs/heads/3.0.x-fixes Commit: e9078e801f45e99ac9c6367fd4b5c2e028e94a18 Parents: 1c8cbd9 Author: Alessio Soldano <[email protected]> Authored: Thu Apr 9 18:27:47 2015 +0200 Committer: Alessio Soldano <[email protected]> Committed: Thu Apr 9 18:27:47 2015 +0200 ---------------------------------------------------------------------- .../java/org/apache/cxf/attachment/AttachmentDeserializer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/e9078e80/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java b/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java index 35bdc5b..38e01ce 100644 --- a/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java +++ b/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java @@ -320,7 +320,7 @@ public class AttachmentDeserializer { private Map<String, List<String>> loadPartHeaders(InputStream in) throws IOException { List<String> headerLines = new ArrayList<String>(10); - StringBuffer buffer = new StringBuffer(128); + StringBuilder buffer = new StringBuilder(128); String line; // loop until we hit the end or a null line while ((line = readLine(in)) != null) { @@ -384,7 +384,7 @@ public class AttachmentDeserializer { } private String readLine(InputStream in) throws IOException { - StringBuffer buffer = new StringBuffer(128); + StringBuilder buffer = new StringBuilder(128); int c;
