mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Code fixes
This commit is contained in:
Regular → Executable
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user