aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-layer
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-08-08 22:10:11 +0000
committerOlivier Lamy <olamy@apache.org>2012-08-08 22:10:11 +0000
commitaf692bcacd630bf9799bcea343f10214e9b6ecd7 (patch)
treeca77ad64990c14bdd9c90301d3b11674e3d57def /archiva-modules/archiva-base/archiva-repository-layer
parentf65b6aee2a10d6b722ba6f574c2de5f814438561 (diff)
downloadarchiva-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')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/FilenameParser.java2
-rw-r--r--archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/content/ManagedLegacyRepositoryContentTest.java2
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 )
{