Skip to content

Commit f71eedf

Browse files
authored
xds: remove hashCode() and equals() for SslContextProviderSupplier (grpc#8496)
1 parent fb00463 commit f71eedf

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

xds/src/main/java/io/grpc/xds/internal/sds/SslContextProviderSupplier.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import io.grpc.xds.EnvoyServerProtoData.UpstreamTlsContext;
2626
import io.grpc.xds.TlsContextManager;
2727
import io.netty.handler.ssl.SslContext;
28-
import java.util.Objects;
2928

3029
/**
3130
* Enables Client or server side to initialize this object with the received {@link BaseTlsContext}
@@ -119,26 +118,6 @@ public synchronized void close() {
119118
shutdown = true;
120119
}
121120

122-
@Override
123-
public boolean equals(Object o) {
124-
if (this == o) {
125-
return true;
126-
}
127-
if (o == null || getClass() != o.getClass()) {
128-
return false;
129-
}
130-
SslContextProviderSupplier that = (SslContextProviderSupplier) o;
131-
return shutdown == that.shutdown
132-
&& Objects.equals(tlsContext, that.tlsContext)
133-
&& Objects.equals(tlsContextManager, that.tlsContextManager)
134-
&& Objects.equals(sslContextProvider, that.sslContextProvider);
135-
}
136-
137-
@Override
138-
public int hashCode() {
139-
return Objects.hash(tlsContext, tlsContextManager, sslContextProvider, shutdown);
140-
}
141-
142121
@Override
143122
public String toString() {
144123
return MoreObjects.toStringHelper(this)

0 commit comments

Comments
 (0)