From be124cd7df8df56616279461f01ef8baea150056 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 16 Jul 2015 15:36:01 +0000
Subject: [PATCH] Use Objects.equals() throughout

---
 opendj-server-legacy/src/main/java/org/opends/server/replication/common/DSInfo.java |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/DSInfo.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/DSInfo.java
index bb062fa..d252172 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/DSInfo.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/DSInfo.java
@@ -22,7 +22,7 @@
  *
  *
  *      Copyright 2008-2010 Sun Microsystems, Inc.
- *      Portions copyright 2011-2014 ForgeRock AS
+ *      Portions copyright 2011-2015 ForgeRock AS
  */
 package org.opends.server.replication.common;
 
@@ -38,7 +38,6 @@
  */
 public final class DSInfo
 {
-
   /** DS server id. */
   private final int dsId;
   /** DS server url. */
@@ -279,13 +278,8 @@
         && groupId == dsInfo.getGroupId()
         && protocolVersion == dsInfo.getProtocolVersion()
         && refUrls.equals(dsInfo.getRefUrls())
-        && equals(eclIncludes, dsInfo.getEclIncludes())
-        && equals(eclIncludesForDeletes, dsInfo.getEclIncludesForDeletes());
-  }
-
-  private boolean equals(Object o1, Object o2)
-  {
-    return o1 == null ? o2 == null : o1.equals(o2);
+        && Objects.equals(eclIncludes, dsInfo.getEclIncludes())
+        && Objects.equals(eclIncludesForDeletes, dsInfo.getEclIncludesForDeletes());
   }
 
   /**

--
Gitblit v1.10.0