diff --git a/api/pom.xml b/api/pom.xml
index cc3b7e063..ee6d89d24 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -62,5 +62,9 @@
spring-test
test
+
+ com.google.guava
+ guava
+
diff --git a/api/src/main/java/com/alibaba/nacos/api/naming/pojo/AbstractHealthChecker.java b/api/src/main/java/com/alibaba/nacos/api/naming/pojo/AbstractHealthChecker.java
index 8f09604a5..97259572b 100644
--- a/api/src/main/java/com/alibaba/nacos/api/naming/pojo/AbstractHealthChecker.java
+++ b/api/src/main/java/com/alibaba/nacos/api/naming/pojo/AbstractHealthChecker.java
@@ -23,7 +23,7 @@ import org.apache.commons.lang3.StringUtils;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
-import java.util.Objects;
+import com.google.common.base.Objects;
/**
* @author nkorange
@@ -138,7 +138,7 @@ public abstract class AbstractHealthChecker implements Cloneable {
@Override
public int hashCode() {
- return Objects.hash(path, headers, expectedResponseCode);
+ return Objects.hashCode(path, headers, expectedResponseCode);
}
@Override
@@ -184,7 +184,7 @@ public abstract class AbstractHealthChecker implements Cloneable {
@Override
public int hashCode() {
- return Objects.hash(TYPE);
+ return Objects.hashCode(TYPE);
}
@Override
@@ -250,7 +250,7 @@ public abstract class AbstractHealthChecker implements Cloneable {
@Override
public int hashCode() {
- return Objects.hash(user, pwd, cmd);
+ return Objects.hashCode(user, pwd, cmd);
}
@Override