Skip to content

Commit

Permalink
Checkstyle from master
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 25, 2023
1 parent 46991d0 commit f0859ae
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void testDecodeInvalidEncodedResultDecoding() throws Exception {
final PercentCodec percentCodec = new PercentCodec();
final byte[] encoded = percentCodec.encode(inputS.getBytes(StandardCharsets.UTF_8));
try {
percentCodec.decode(Arrays.copyOf(encoded, encoded.length-1)); //exclude one byte
percentCodec.decode(Arrays.copyOf(encoded, encoded.length - 1)); //exclude one byte
} catch (final Exception e) {
assertTrue(DecoderException.class.isInstance(e) &&
ArrayIndexOutOfBoundsException.class.isInstance(e.getCause()));
Expand Down Expand Up @@ -107,9 +107,9 @@ public void testEncodeUnsupportedObject() {

@Test
public void testInvalidByte() throws Exception {
final byte[] invalid = {(byte)-1, (byte)'A'};
final byte[] data = {(byte)'A', (byte)'B'};
final byte[] expected = {(byte)'%', (byte)'4', (byte)'1', (byte)'B'};
final byte[] invalid = { (byte) -1, (byte) 'A' };
final byte[] data = { (byte) 'A', (byte) 'B' };
final byte[] expected = { (byte) '%', (byte) '4', (byte) '1', (byte) 'B' };

final PercentCodec percentCodec = new PercentCodec(invalid, true);
final byte[] result = percentCodec.encode(data);
Expand Down

0 comments on commit f0859ae

Please sign in to comment.