Skip to content

Commit a05c364

Browse files
committed
Removed stray println
1 parent 8d9d685 commit a05c364

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

src/test/java/com/maxmind/maxminddb/DecoderTest.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,19 @@ static Map<String, byte[]> strings() {
147147
"1234567890123456789012345678");
148148
DecoderTest.addTestString(strings, (byte) 0x5c,
149149
"1234567890123456789012345678");
150-
DecoderTest.addTestString(strings, new byte[]{0x5d, 0x0},
150+
DecoderTest.addTestString(strings, new byte[] { 0x5d, 0x0 },
151151
"12345678901234567890123456789");
152-
DecoderTest.addTestString(strings, new byte[]{0x5d, 0x1},
152+
DecoderTest.addTestString(strings, new byte[] { 0x5d, 0x1 },
153153
"123456789012345678901234567890");
154154

155155
DecoderTest
156-
.addTestString(strings, new byte[]{0x5e, 0x0, (byte) 0xd7},
156+
.addTestString(strings, new byte[] { 0x5e, 0x0, (byte) 0xd7 },
157157
DecoderTest.xString(500));
158158
DecoderTest.addTestString(strings,
159-
new byte[]{0x5e, 0x6, (byte) 0xb3},
159+
new byte[] { 0x5e, 0x6, (byte) 0xb3 },
160160
DecoderTest.xString(2000));
161161
DecoderTest.addTestString(strings,
162-
new byte[]{0x5f, 0x0, 0x10, 0x53,},
162+
new byte[] { 0x5f, 0x0, 0x10, 0x53, },
163163
DecoderTest.xString(70000));
164164

165165
return strings;
@@ -191,7 +191,7 @@ private static String xString(int length) {
191191

192192
private static void addTestString(Map<String, byte[]> tests, byte ctrl,
193193
String str) {
194-
DecoderTest.addTestString(tests, new byte[]{ctrl}, str);
194+
DecoderTest.addTestString(tests, new byte[] { ctrl }, str);
195195
}
196196

197197
private static void addTestString(Map<String, byte[]> tests, byte ctrl[],
@@ -386,7 +386,6 @@ static <T> void testTypeDecoding(Type type, Map<T, byte[]> tests)
386386
for (Map.Entry<T, byte[]> entry : tests.entrySet()) {
387387
T expect = entry.getKey();
388388
byte[] input = entry.getValue();
389-
System.out.println(Arrays.toString(input));
390389

391390
String desc = "decoded " + type.name() + " - " + expect;
392391
FileChannel fc = DecoderTest.getFileChannel(input);
@@ -424,8 +423,8 @@ static <T> void testTypeDecoding(Type type, Map<T, byte[]> tests)
424423
} else {
425424
assertEquals(desc, expect, decoder.decode(0).getObject());
426425
}
427-
} finally {
428-
if (fc != null ) {
426+
} finally {
427+
if (fc != null) {
429428
fc.close();
430429
}
431430
}
@@ -504,7 +503,7 @@ private static FileChannel getFileChannel(byte[] data) throws IOException {
504503
raf = new RandomAccessFile(file, "r");
505504

506505
return raf.getChannel();
507-
} finally {
506+
} finally {
508507
if (fc != null) {
509508
fc.close();
510509
}

0 commit comments

Comments
 (0)