@@ -152,21 +152,21 @@ private static Map<String, byte[]> strings() {
152
152
DecoderTest .addTestString (strings , new byte []{0x5d , 0x0 },
153
153
"12345678901234567890123456789" );
154
154
DecoderTest .addTestString (strings , new byte []{0x5d , (byte ) 128 },
155
- DecoderTest . xString (157 ));
155
+ "x" . repeat (157 ));
156
156
157
157
DecoderTest
158
158
.addTestString (strings , new byte []{0x5d , 0x0 , (byte ) 0xd7 },
159
- DecoderTest . xString (500 ));
159
+ "x" . repeat (500 ));
160
160
161
161
DecoderTest
162
162
.addTestString (strings , new byte []{0x5e , 0x0 , (byte ) 0xd7 },
163
- DecoderTest . xString (500 ));
163
+ "x" . repeat (500 ));
164
164
DecoderTest .addTestString (strings ,
165
165
new byte []{0x5e , 0x6 , (byte ) 0xb3 },
166
- DecoderTest . xString (2000 ));
166
+ "x" . repeat (2000 ));
167
167
DecoderTest .addTestString (strings ,
168
168
new byte []{0x5f , 0x0 , 0x10 , 0x53 ,},
169
- DecoderTest . xString (70000 ));
169
+ "x" . repeat (70000 ));
170
170
171
171
return strings ;
172
172
@@ -187,14 +187,6 @@ private static Map<byte[], byte[]> bytes() {
187
187
return bytes ;
188
188
}
189
189
190
- private static String xString (int length ) {
191
- StringBuilder sb = new StringBuilder ();
192
- for (int i = 0 ; i < length ; i ++) {
193
- sb .append ("x" );
194
- }
195
- return sb .toString ();
196
- }
197
-
198
190
private static void addTestString (Map <String , byte []> tests , byte ctrl ,
199
191
String str ) {
200
192
DecoderTest .addTestString (tests , new byte []{ctrl }, str );
0 commit comments