Skip to content

Commit 6149a3d

Browse files
committed
Use compact array notation
1 parent 120ba0c commit 6149a3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/io/function/IOFunctionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void testComposeSupplier() throws IOException {
168168
public void testIdentity() throws IOException {
169169
assertEquals(IOFunction.identity(), IOFunction.identity());
170170
final IOFunction<byte[], byte[]> identityFunction = IOFunction.identity();
171-
final byte[] buf = new byte[] {(byte) 0xa, (byte) 0xb, (byte) 0xc};
171+
final byte[] buf = {(byte) 0xa, (byte) 0xb, (byte) 0xc};
172172
assertEquals(buf, identityFunction.apply(buf));
173173
assertArrayEquals(buf, identityFunction.apply(buf));
174174
}

0 commit comments

Comments
 (0)