replace StringBuffer with StringBuilder

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1129176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-05-30 13:57:32 +00:00
parent 7e78123c09
commit f0a771edc3
5 changed files with 10 additions and 10 deletions

View File

@ -82,7 +82,7 @@ public abstract class AbstractDefaultRepositoryContent
public String toMetadataPath( ProjectReference reference )
{
StringBuffer path = new StringBuffer();
StringBuilder path = new StringBuilder();
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
@ -93,7 +93,7 @@ public abstract class AbstractDefaultRepositoryContent
public String toMetadataPath( VersionedReference reference )
{
StringBuffer path = new StringBuffer();
StringBuilder path = new StringBuilder();
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );

View File

@ -87,7 +87,7 @@ public abstract class AbstractLegacyRepositoryContent
private String toPath( String groupId, String artifactId, String version, String classifier, String type )
{
StringBuffer path = new StringBuffer();
StringBuilder path = new StringBuilder();
path.append( groupId ).append( PATH_SEPARATOR );
path.append( getDirectory( type ) ).append( PATH_SEPARATOR );

View File

@ -227,7 +227,7 @@ public class FilenameParser
{
boolean done = false;
StringBuffer ver = new StringBuffer();
StringBuilder ver = new StringBuilder();
while ( !done )
{

View File

@ -140,7 +140,7 @@ public class ManagedDefaultRepositoryContent
}
catch ( LayoutException e )
{
log.debug( "Not processing file that is not an artifact: " + e.getMessage() );
log.debug( "Not processing file that is not an artifact: {}", e.getMessage() );
}
}
}

View File

@ -222,7 +222,7 @@ public class MetadataTools
reference.setArtifactId( pathParts[artifactIdOffset] );
StringBuffer gid = new StringBuffer();
StringBuilder gid = new StringBuilder();
for ( int i = 0; i <= groupIdEnd; i++ )
{
if ( i > 0 )
@ -262,7 +262,7 @@ public class MetadataTools
reference.setArtifactId( pathParts[artifactIdOffset] );
StringBuffer gid = new StringBuffer();
StringBuilder gid = new StringBuilder();
for ( int i = 0; i <= groupIdEnd; i++ )
{
if ( i > 0 )
@ -279,7 +279,7 @@ public class MetadataTools
public String toPath( ProjectReference reference )
{
StringBuffer path = new StringBuffer();
StringBuilder path = new StringBuilder();
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
@ -290,7 +290,7 @@ public class MetadataTools
public String toPath( VersionedReference reference )
{
StringBuffer path = new StringBuffer();
StringBuilder path = new StringBuilder();
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
@ -330,7 +330,7 @@ public class MetadataTools
*/
public String getRepositorySpecificName( String proxyId, String path )
{
StringBuffer ret = new StringBuffer();
StringBuilder ret = new StringBuilder();
int idx = path.lastIndexOf( "/" );
if ( idx > 0 )