Code fixes

This commit is contained in:
Peter Lawrey
2016-02-10 15:26:28 -05:00
parent 0fa83b0b1c
commit 13d276f08f
+3 -2
View File
@@ -24,12 +24,13 @@ import java.util.Arrays;
/**
* java.util.Objects since Java 7
*/
final class Objects {
enum Objects {
;
static int hash(Object... values) {
return Arrays.hashCode(values);
}
static boolean equal(@Nullable Object a, @Nullable Object b) {
static boolean equals(@Nullable Object a, @Nullable Object b) {
return a != null ? a.equals(b) : b == null;
}