mirror of https://github.com/grpc/grpc-java.git
xds: remove hashCode() and equals() for SslContextProviderSupplier (#8496)
This commit is contained in:
parent
fb00463001
commit
f71eedff40
|
|
@ -25,7 +25,6 @@ import io.grpc.xds.EnvoyServerProtoData.DownstreamTlsContext;
|
|||
import io.grpc.xds.EnvoyServerProtoData.UpstreamTlsContext;
|
||||
import io.grpc.xds.TlsContextManager;
|
||||
import io.netty.handler.ssl.SslContext;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Enables Client or server side to initialize this object with the received {@link BaseTlsContext}
|
||||
|
|
@ -119,26 +118,6 @@ public final class SslContextProviderSupplier implements Closeable {
|
|||
shutdown = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
SslContextProviderSupplier that = (SslContextProviderSupplier) o;
|
||||
return shutdown == that.shutdown
|
||||
&& Objects.equals(tlsContext, that.tlsContext)
|
||||
&& Objects.equals(tlsContextManager, that.tlsContextManager)
|
||||
&& Objects.equals(sslContextProvider, that.sslContextProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(tlsContext, tlsContextManager, sslContextProvider, shutdown);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return MoreObjects.toStringHelper(this)
|
||||
|
|
|
|||
Loading…
Reference in New Issue