diff --git a/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/util/TArrays.java b/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/util/TArrays.java index 276f8fa6b2..52dc3a4e5a 100644 --- a/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/util/TArrays.java +++ b/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/util/TArrays.java @@ -206,6 +206,20 @@ public static boolean equals(final byte[] a, final byte[] b) { } return true; } + public static boolean equals(final short[] a, final short[] b) { + if (a == b) { + return true; + } + if (a.length != b.length) { + return false; + } + for (int i=0;i consumer){ + consumer.accept("test"); + } +}