remove self assignemet

use StringBuilder to concate String in a loop.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1179997 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-10-07 10:56:07 +00:00
parent e72c34b8f2
commit 659ab05e9f
2 changed files with 3 additions and 4 deletions

View File

@ -93,7 +93,6 @@ public class ManagedRepository
this.retentionCount = retentionCount;
this.deleteReleasedSnapshots = deleteReleasedSnapshots;
this.stageRepoNeeded = stageRepoNeeded;
this.resetStats = resetStats;
}
public String getCronExpression()

View File

@ -119,7 +119,7 @@ public class ChecksumApplet
protected static String byteArrayToHexStr( byte[] data )
{
String output = "";
StringBuilder output = new StringBuilder( "" );
for ( int cnt = 0; cnt < data.length; cnt++ )
{
@ -136,9 +136,9 @@ public class ChecksumApplet
}
//Concatenate the two characters to the output string.
output = output + tempStr;
output.append( tempStr );
}
return output.toUpperCase();
return output.toString().toUpperCase();
}
}