Whitespace-only code formatting changes.

This commit is contained in:
akwizgran
2015-11-30 09:38:25 +00:00
parent 1950c13ffb
commit 027ae8340f
202 changed files with 2993 additions and 2993 deletions

View File

@@ -131,39 +131,39 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readInteger();
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
setContents("21" + "80" + "22" + "FF80");
assertEquals(Byte.MIN_VALUE, r.readInteger());
try {
r.readInteger();
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
// INTEGER_32 could be encoded as INTEGER_16
setContents("22" + "7FFF" + "24" + "00007FFF");
assertEquals(Short.MAX_VALUE, r.readInteger());
try {
r.readInteger();
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
setContents("22" + "8000" + "24" + "FFFF8000");
assertEquals(Short.MIN_VALUE, r.readInteger());
try {
r.readInteger();
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
// INTEGER_64 could be encoded as INTEGER_32
setContents("24" + "7FFFFFFF" + "28" + "000000007FFFFFFF");
assertEquals(Integer.MAX_VALUE, r.readInteger());
try {
r.readInteger();
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
setContents("24" + "80000000" + "28" + "FFFFFFFF80000000");
assertEquals(Integer.MIN_VALUE, r.readInteger());
try {
r.readInteger();
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test
@@ -214,7 +214,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readString(2);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test
@@ -254,7 +254,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readString(Byte.MAX_VALUE);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test
@@ -292,7 +292,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readString(Short.MAX_VALUE);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test
@@ -317,7 +317,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readString(Integer.MAX_VALUE);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
// STRING_32 could be encoded as STRING_16
String longest16 = TestUtils.createRandomString(Short.MAX_VALUE);
String long16Hex = StringUtils.toHexString(longest16.getBytes("UTF-8"));
@@ -326,7 +326,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readString(Integer.MAX_VALUE);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test
@@ -351,7 +351,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readRaw(2);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test
@@ -391,7 +391,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readRaw(Byte.MAX_VALUE);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test
@@ -429,7 +429,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readRaw(Short.MAX_VALUE);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test
@@ -454,7 +454,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readRaw(Integer.MAX_VALUE);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
// RAW_32 could be encoded as RAW_16
byte[] longest16 = new byte[Short.MAX_VALUE];
String long16Hex = StringUtils.toHexString(longest16);
@@ -463,7 +463,7 @@ public class ReaderImplTest extends BriarTestCase {
try {
r.readRaw(Integer.MAX_VALUE);
fail();
} catch(FormatException expected) {}
} catch (FormatException expected) {}
}
@Test

View File

@@ -146,7 +146,7 @@ public class WriterImplTest extends BriarTestCase {
@Test
public void testWriteList() throws IOException {
List<Object> l = new ArrayList<Object>();
for(int i = 0; i < 3; i++) l.add(i);
for (int i = 0; i < 3; i++) l.add(i);
w.writeList(l);
// LIST tag, elements as integers, END tag
checkContents("60" + "21" + "00" + "21" + "01" + "21" + "02" + "80");
@@ -167,7 +167,7 @@ public class WriterImplTest extends BriarTestCase {
public void testWriteMap() throws IOException {
// Use LinkedHashMap to get predictable iteration order
Map<String, Object> m = new LinkedHashMap<String, Object>();
for(int i = 0; i < 4; i++) m.put(String.valueOf(i), i);
for (int i = 0; i < 4; i++) m.put(String.valueOf(i), i);
w.writeMap(m);
// MAP tag, keys as strings and values as integers, END tag
checkContents("70" + "41" + "01" + "30" + "21" + "00" +