Skip to content

Commit 6dff22c

Browse files
authored
JAVA-1980: Use covariant return types in RemoteEndpointAwareJdkSSLOptions.Builder methods (apache#1139)
1 parent 626d9e6 commit 6dff22c

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

changelog/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### 3.7.0 (In progress)
44

55
- [improvement] JAVA-2025: Include exception message in Abstract*Codec.accepts(null).
6+
- [improvement] JAVA-1980: Use covariant return types in RemoteEndpointAwareJdkSSLOptions.Builder methods.
67

78

89
### 3.6.0

driver-core/src/main/java/com/datastax/driver/core/RemoteEndpointAwareJdkSSLOptions.java

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,21 @@ protected SSLEngine newSSLEngine(
8484
return engine;
8585
}
8686

87-
/** Helper class to build JDK-based SSL options. */
87+
/** Helper class to build {@link RemoteEndpointAwareJdkSSLOptions} instances. */
8888
public static class Builder extends JdkSSLOptions.Builder {
8989

90-
/**
91-
* Builds a new instance based on the parameters provided to this builder.
92-
*
93-
* @return the new instance.
94-
*/
90+
@Override
91+
public RemoteEndpointAwareJdkSSLOptions.Builder withSSLContext(SSLContext context) {
92+
super.withSSLContext(context);
93+
return this;
94+
}
95+
96+
@Override
97+
public RemoteEndpointAwareJdkSSLOptions.Builder withCipherSuites(String[] cipherSuites) {
98+
super.withCipherSuites(cipherSuites);
99+
return this;
100+
}
101+
95102
@Override
96103
public RemoteEndpointAwareJdkSSLOptions build() {
97104
return new RemoteEndpointAwareJdkSSLOptions(context, cipherSuites);

0 commit comments

Comments
 (0)