File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/java/org/codehaus/plexus/archiver/tar
test/java/org/codehaus/plexus/archiver/jar Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ else if ( this.buffer.isEOFRecord( headerBuf ) )
257
257
if ( this .currEntry != null && this .currEntry .isGNULongNameEntry () )
258
258
{
259
259
// read in the name
260
- StringBuffer longName = new StringBuffer ();
260
+ StringBuilder longName = new StringBuilder ();
261
261
byte [] buffer = new byte [256 ];
262
262
int length ;
263
263
while ( ( length = read ( buffer ) ) >= 0 )
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public void testCreateArchiveWithIndexedJarsAndMetaInf()
114
114
String res = new String (buf ,0 ,i );
115
115
//System.out.println(res);
116
116
117
- StringBuffer expected = new StringBuffer ();
117
+ StringBuilder expected = new StringBuilder ();
118
118
expected .append ("JarIndex-Version: 1.0\n \n " );
119
119
expected .append ("archive2.jar\n two.txt\n \n " );
120
120
expected .append ("archive1.jar\n META-INF\n one.txt\n \n " );
You can’t perform that action at this time.
0 commit comments