Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Made certFile parameter not-null
  • Loading branch information
Adrian Todt committed Mar 7, 2020
commit 1ba081adec6a5b331bd7e2484425219ccde77e56
5 changes: 2 additions & 3 deletions src/main/java/com/rethinkdb/net/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,8 @@ public Builder(@NotNull URI uri) {
return this;
}

public @NotNull Builder certFile(@Nullable InputStream val) {
sslContext = Internals.readCertFile(val);
return this;
public @NotNull Builder certFile(@NotNull InputStream val) {
return sslContext(Internals.readCertFile(val));
}

public @NotNull Builder sslContext(@Nullable SSLContext val) {
Expand Down