mirror of https://github.com/apache/archiva.git
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:
parent
7e78123c09
commit
f0a771edc3
|
@ -82,7 +82,7 @@ public abstract class AbstractDefaultRepositoryContent
|
||||||
|
|
||||||
public String toMetadataPath( ProjectReference reference )
|
public String toMetadataPath( ProjectReference reference )
|
||||||
{
|
{
|
||||||
StringBuffer path = new StringBuffer();
|
StringBuilder path = new StringBuilder();
|
||||||
|
|
||||||
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
|
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
|
||||||
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
|
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
|
||||||
|
@ -93,7 +93,7 @@ public abstract class AbstractDefaultRepositoryContent
|
||||||
|
|
||||||
public String toMetadataPath( VersionedReference reference )
|
public String toMetadataPath( VersionedReference reference )
|
||||||
{
|
{
|
||||||
StringBuffer path = new StringBuffer();
|
StringBuilder path = new StringBuilder();
|
||||||
|
|
||||||
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
|
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
|
||||||
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
|
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
|
||||||
|
|
|
@ -87,7 +87,7 @@ public abstract class AbstractLegacyRepositoryContent
|
||||||
|
|
||||||
private String toPath( String groupId, String artifactId, String version, String classifier, String type )
|
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( groupId ).append( PATH_SEPARATOR );
|
||||||
path.append( getDirectory( type ) ).append( PATH_SEPARATOR );
|
path.append( getDirectory( type ) ).append( PATH_SEPARATOR );
|
||||||
|
|
|
@ -227,7 +227,7 @@ public class FilenameParser
|
||||||
{
|
{
|
||||||
boolean done = false;
|
boolean done = false;
|
||||||
|
|
||||||
StringBuffer ver = new StringBuffer();
|
StringBuilder ver = new StringBuilder();
|
||||||
|
|
||||||
while ( !done )
|
while ( !done )
|
||||||
{
|
{
|
||||||
|
|
|
@ -140,7 +140,7 @@ public class ManagedDefaultRepositoryContent
|
||||||
}
|
}
|
||||||
catch ( LayoutException e )
|
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() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,7 +222,7 @@ public class MetadataTools
|
||||||
|
|
||||||
reference.setArtifactId( pathParts[artifactIdOffset] );
|
reference.setArtifactId( pathParts[artifactIdOffset] );
|
||||||
|
|
||||||
StringBuffer gid = new StringBuffer();
|
StringBuilder gid = new StringBuilder();
|
||||||
for ( int i = 0; i <= groupIdEnd; i++ )
|
for ( int i = 0; i <= groupIdEnd; i++ )
|
||||||
{
|
{
|
||||||
if ( i > 0 )
|
if ( i > 0 )
|
||||||
|
@ -262,7 +262,7 @@ public class MetadataTools
|
||||||
|
|
||||||
reference.setArtifactId( pathParts[artifactIdOffset] );
|
reference.setArtifactId( pathParts[artifactIdOffset] );
|
||||||
|
|
||||||
StringBuffer gid = new StringBuffer();
|
StringBuilder gid = new StringBuilder();
|
||||||
for ( int i = 0; i <= groupIdEnd; i++ )
|
for ( int i = 0; i <= groupIdEnd; i++ )
|
||||||
{
|
{
|
||||||
if ( i > 0 )
|
if ( i > 0 )
|
||||||
|
@ -279,7 +279,7 @@ public class MetadataTools
|
||||||
|
|
||||||
public String toPath( ProjectReference reference )
|
public String toPath( ProjectReference reference )
|
||||||
{
|
{
|
||||||
StringBuffer path = new StringBuffer();
|
StringBuilder path = new StringBuilder();
|
||||||
|
|
||||||
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
|
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
|
||||||
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
|
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
|
||||||
|
@ -290,7 +290,7 @@ public class MetadataTools
|
||||||
|
|
||||||
public String toPath( VersionedReference reference )
|
public String toPath( VersionedReference reference )
|
||||||
{
|
{
|
||||||
StringBuffer path = new StringBuffer();
|
StringBuilder path = new StringBuilder();
|
||||||
|
|
||||||
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
|
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
|
||||||
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
|
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
|
||||||
|
@ -330,7 +330,7 @@ public class MetadataTools
|
||||||
*/
|
*/
|
||||||
public String getRepositorySpecificName( String proxyId, String path )
|
public String getRepositorySpecificName( String proxyId, String path )
|
||||||
{
|
{
|
||||||
StringBuffer ret = new StringBuffer();
|
StringBuilder ret = new StringBuilder();
|
||||||
|
|
||||||
int idx = path.lastIndexOf( "/" );
|
int idx = path.lastIndexOf( "/" );
|
||||||
if ( idx > 0 )
|
if ( idx > 0 )
|
||||||
|
|
Loading…
Reference in New Issue