mirror of https://github.com/apache/archiva.git
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:
parent
e72c34b8f2
commit
659ab05e9f
|
@ -93,7 +93,6 @@ public class ManagedRepository
|
|||
this.retentionCount = retentionCount;
|
||||
this.deleteReleasedSnapshots = deleteReleasedSnapshots;
|
||||
this.stageRepoNeeded = stageRepoNeeded;
|
||||
this.resetStats = resetStats;
|
||||
}
|
||||
|
||||
public String getCronExpression()
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue