Skip to content

Commit de53346

Browse files
committed
Replaced JRE 1 class by JRE 5 class
1 parent 0c16be6 commit de53346

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/codehaus/plexus/util/StringUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ public static String replace( String text, String repl, String with, int max )
829829
*/
830830
public static String overlayString( String text, String overlay, int start, int end )
831831
{
832-
return new StringBuffer( start + overlay.length() + text.length() - end + 1 )
832+
return new StringBuilder( start + overlay.length() + text.length() - end + 1 )
833833
.append( text, 0, start )
834834
.append( overlay )
835835
.append( text, end, text.length() )
@@ -1476,7 +1476,7 @@ else if ( str.length() == 0 )
14761476
}
14771477
else
14781478
{
1479-
return new StringBuffer( str.length() )
1479+
return new StringBuilder( str.length() )
14801480
.append( Character.toLowerCase( str.charAt( 0 ) ) )
14811481
.append( str, 1, str.length() )
14821482
.toString();
@@ -1972,7 +1972,7 @@ public static String reverse( String str )
19721972
{
19731973
return null;
19741974
}
1975-
return new StringBuffer( str ).reverse().toString();
1975+
return new StringBuilder( str ).reverse().toString();
19761976
}
19771977

19781978
/**

0 commit comments

Comments
 (0)