Merge remote-tracking branch 'origin/2.1' into 2.1

This commit is contained in:
Rob Austin
2016-03-08 18:53:24 +00:00
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -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>
+4 -2
View File
@@ -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;
}