mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Merge remote-tracking branch 'origin/2.1' into 2.1
This commit is contained in:
@@ -37,14 +37,14 @@
|
||||
<groupId>net.openhft</groupId>
|
||||
<artifactId>third-party-bom</artifactId>
|
||||
<type>pom</type>
|
||||
<version>3.5.0-SNAPSHOT</version>
|
||||
<version>3.5.0</version>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>net.openhft</groupId>
|
||||
<artifactId>chronicle-bom</artifactId>
|
||||
<version>1.11.8</version>
|
||||
<version>1.11.15</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
Regular → Executable
+4
-2
@@ -24,12 +24,14 @@ 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) {
|
||||
// use the same API as Java 8's Objects.equals
|
||||
static boolean equals(@Nullable Object a, @Nullable Object b) {
|
||||
return a != null ? a.equals(b) : b == null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user