summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-model
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-model
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-model')
-rw-r--r--archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java4
-rw-r--r--archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/Keys.java6
-rw-r--r--archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml8
3 files changed, 9 insertions, 9 deletions
diff --git a/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java b/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
index feef28b7d..00a797236 100644
--- a/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
+++ b/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
@@ -197,7 +197,7 @@ public class ArchivaArtifact
@Override
public String toString()
{
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
if ( model.getGroupId() != null )
{
sb.append( model.getGroupId() );
@@ -213,7 +213,7 @@ public class ArchivaArtifact
return sb.toString();
}
- private void appendArtifactTypeClassifierString( StringBuffer sb )
+ private void appendArtifactTypeClassifierString( StringBuilder sb )
{
sb.append( model.getArtifactId() );
sb.append( ":" );
diff --git a/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/Keys.java b/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/Keys.java
index 1b2057efd..8be312a30 100644
--- a/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/Keys.java
+++ b/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/Keys.java
@@ -30,7 +30,7 @@ public class Keys
{
public static String toKey( String groupId, String artifactId, String version, String classifier, String type )
{
- StringBuffer key = new StringBuffer();
+ StringBuilder key = new StringBuilder();
key.append( groupId ).append( ":" );
key.append( artifactId ).append( ":" );
@@ -48,7 +48,7 @@ public class Keys
public static String toKey( ProjectReference ref )
{
- StringBuffer key = new StringBuffer();
+ StringBuilder key = new StringBuilder();
key.append( ref.getGroupId() ).append( ":" );
key.append( ref.getArtifactId() );
@@ -58,7 +58,7 @@ public class Keys
public static String toKey( String groupId, String artifactId, String version )
{
- StringBuffer key = new StringBuffer();
+ StringBuilder key = new StringBuilder();
key.append( groupId ).append( ":" );
key.append( artifactId ).append( ":" );
diff --git a/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml b/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml
index b949c2e83..71bcd79cc 100644
--- a/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml
+++ b/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml
@@ -504,7 +504,7 @@
public static String toKey( ProjectReference reference )
{
- StringBuffer key = new StringBuffer();
+ StringBuilder key = new StringBuilder();
key.append( defaultString( reference.getGroupId() ) ).append( ":" );
key.append( defaultString( reference.getArtifactId() ) );
@@ -574,7 +574,7 @@
public static String toKey( VersionedReference reference )
{
- StringBuffer key = new StringBuffer();
+ StringBuilder key = new StringBuilder();
key.append( defaultString( reference.getGroupId() ) ).append( ":" );
key.append( defaultString( reference.getArtifactId() ) ).append( ":" );
@@ -664,7 +664,7 @@
public static String toKey( ArtifactReference artifactReference )
{
- StringBuffer key = new StringBuffer();
+ StringBuilder key = new StringBuilder();
key.append( defaultString( artifactReference.getGroupId() ) ).append( ":" );
key.append( defaultString( artifactReference.getArtifactId() ) ).append( ":" );
@@ -677,7 +677,7 @@
public static String toVersionlessKey( ArtifactReference artifactReference )
{
- StringBuffer key = new StringBuffer();
+ StringBuilder key = new StringBuilder();
key.append( defaultString( artifactReference.getGroupId() ) ).append( ":" );
key.append( defaultString( artifactReference.getArtifactId() ) ).append( ":" );