array definitions was inconsistent, now everywhere "Type[] variableName", using StringBuilder => little bit faster, test fixed (missing parameters)

This commit is contained in:
Honfika
2013-09-09 11:46:04 +02:00
parent 591e47b964
commit d571b899c6
155 changed files with 424 additions and 406 deletions
@@ -118,7 +118,7 @@ public class ABCOutputStream extends OutputStream {
}
public void writeLong(long value) throws IOException {
byte writeBuffer[] = new byte[8];
byte[] writeBuffer = new byte[8];
writeBuffer[7] = (byte) (value >>> 56);
writeBuffer[6] = (byte) (value >>> 48);
writeBuffer[5] = (byte) (value >>> 40);
@@ -144,7 +144,7 @@ public class ABCOutputStream extends OutputStream {
}
public void writeString(String s) throws IOException {
byte sbytes[] = s.getBytes("UTF-8");
byte[] sbytes = s.getBytes("UTF-8");
writeU30(sbytes.length);
write(sbytes);
}