Skip to content
Merged
Changes from all commits
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
10 changes: 5 additions & 5 deletions src/main/java/io/weaviate/client6/v1/api/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static Config of(Function<Custom, ObjectBuilder<Config>> fn) {
return fn.apply(new Custom()).build();
}

public Config(Builder<?> builder) {
private Config(Builder<?> builder) {
this(
builder.scheme,
builder.httpHost,
Expand All @@ -42,7 +42,7 @@ public GrpcChannelOptions grpcTransportOptions() {
return new GrpcChannelOptions(scheme, grpcHost, grpcPort, headers, tokenProvider);
}

abstract static class Builder<SELF extends Builder<SELF>> implements ObjectBuilder<Config> {
private abstract static class Builder<SELF extends Builder<SELF>> implements ObjectBuilder<Config> {
protected String scheme;

protected String httpHost;
Expand Down Expand Up @@ -158,8 +158,8 @@ public static class Custom extends Builder<Custom> {
* <strong>443</strong> for HTTPS connection and <strong>80</strong> for HTTP.
*/
public Custom scheme(String scheme) {
httpPort(scheme == "https" ? 443 : 80);
grpcPort(scheme == "https" ? 443 : 80);
httpPort("https".equals(scheme) ? 443 : 80);
grpcPort("https".equals(scheme) ? 443 : 80);
return super.scheme(scheme);
}

Expand All @@ -169,7 +169,7 @@ public Custom httpHost(String httpHost) {
}

public Custom httpPort(int port) {
this.grpcPort = port;
this.httpPort = port;
return this;
}

Expand Down