Remove commons.lang.builder refs

parent 74540e9f
...@@ -16,11 +16,10 @@ ...@@ -16,11 +16,10 @@
package org.springframework.cloud.netflix.eureka.server; package org.springframework.cloud.netflix.eureka.server;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.Objects;
/** /**
* Configuration properties for the Eureka dashboard (UI). * Configuration properties for the Eureka dashboard (UI).
* *
...@@ -57,17 +56,24 @@ public class EurekaDashboardProperties { ...@@ -57,17 +56,24 @@ public class EurekaDashboardProperties {
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o); if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EurekaDashboardProperties that = (EurekaDashboardProperties) o;
return enabled == that.enabled &&
Objects.equals(path, that.path);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this); return Objects.hash(path, enabled);
} }
@Override @Override
public String toString() { public String toString() {
return ToStringBuilder.reflectionToString(this); final StringBuffer sb = new StringBuffer("EurekaDashboardProperties{");
sb.append("path='").append(path).append('\'');
sb.append(", enabled=").append(enabled);
sb.append('}');
return sb.toString();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment