xds: remove hashCode() and equals() for SslContextProviderSupplier (#8496)

This commit is contained in:
sanjaypujare 2021-09-08 22:38:26 +00:00 committed by GitHub
parent fb00463001
commit f71eedff40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 21 deletions

View File

@ -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)