Reformat whole codebase using Android Studio

This commit is contained in:
Manuel Fuhr 2022-07-11 06:30:17 +02:00
parent d5322667d5
commit c15913c1ab
161 changed files with 15124 additions and 18537 deletions

View file

@ -6,23 +6,19 @@ import java.util.HashSet;
import org.junit.Assert;
import org.junit.Test;
public class ByteDataIOTest
{
public class ByteDataIOTest {
@Test
public void varLengthEncodeDecodeTest()
{
byte[] ab = new byte[4000];
ByteDataWriter w = new ByteDataWriter( ab );
for( int i=0; i<1000; i++ )
{
w.writeVarLengthUnsigned( i );
public void varLengthEncodeDecodeTest() {
byte[] ab = new byte[4000];
ByteDataWriter w = new ByteDataWriter(ab);
for (int i = 0; i < 1000; i++) {
w.writeVarLengthUnsigned(i);
}
ByteDataReader r = new ByteDataReader( ab );
for( int i=0; i<1000; i++ )
{
ByteDataReader r = new ByteDataReader(ab);
for (int i = 0; i < 1000; i++) {
int value = r.readVarLengthUnsigned();
Assert.assertTrue( "value mismatch", value == i );
Assert.assertTrue("value mismatch", value == i);
}
}
}