diff options
author | Olivier Lamy <olamy@apache.org> | 2012-08-08 22:10:11 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-08-08 22:10:11 +0000 |
commit | af692bcacd630bf9799bcea343f10214e9b6ecd7 (patch) | |
tree | ca77ad64990c14bdd9c90301d3b11674e3d57def /archiva-modules/archiva-base/archiva-repository-layer | |
parent | f65b6aee2a10d6b722ba6f574c2de5f814438561 (diff) | |
download | archiva-af692bcacd630bf9799bcea343f10214e9b6ecd7.tar.gz archiva-af692bcacd630bf9799bcea343f10214e9b6ecd7.zip |
use StringBuilder rather than StringBuffer
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1370992 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-layer')
2 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/FilenameParser.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/FilenameParser.java index a86308fe9..39ec39d78 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/FilenameParser.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/FilenameParser.java @@ -187,7 +187,7 @@ public class FilenameParser { boolean done = false; - StringBuffer ver = new StringBuffer(); + StringBuilder ver = new StringBuilder(); // Any text upto the end of a special case is considered non-version. Matcher specialMat = mavenPluginPattern.matcher( name ); diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/content/ManagedLegacyRepositoryContentTest.java b/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/content/ManagedLegacyRepositoryContentTest.java index 3d3683a3e..2d5cae1be 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/content/ManagedLegacyRepositoryContentTest.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/content/ManagedLegacyRepositoryContentTest.java @@ -150,7 +150,7 @@ public class ManagedLegacyRepositoryContentTest "org.apache.maven/distributions/testing-1.0.tar.gz", "org.apache.maven/distributions/testing-1.0.zip", "org.apache.maven/javadoc.jars/testing-1.0-javadoc.jar" }; - StringBuffer relatedDebugString = new StringBuffer(); + StringBuilder relatedDebugString = new StringBuilder(); relatedDebugString.append( "[" ); for ( ArtifactReference ref : related ) { |