Skip to content

Commit 22a0e41

Browse files
fix: linter
1 parent 91775ed commit 22a0e41

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/main/java/com/influxdb/v3/client/config/ClientConfig.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@
6666
* If you want to create a client with custom configuration, you can use following code:
6767
* <pre>
6868
* ClientConfig config = new ClientConfig.Builder()
69-
* .host("<a href="https://us-east-1-1.aws.cloud2.influxdata.com">https://us-east-1-1.aws.cloud2.influxdata.com</a>")
69+
* .host("<a href="https://us-east-1-1.aws.cloud2.influxdata.com">
70+
* https://us-east-1-1.aws.cloud2.influxdata.com
71+
* </a>")
7072
* .token("my-token".toCharArray())
7173
* .database("my-database")
7274
* .writePrecision(WritePrecision.S)
@@ -223,7 +225,7 @@ public String getProxyUrl() {
223225
}
224226

225227
/**
226-
* Gets certificates file path
228+
* Gets certificates file path.
227229
*
228230
* @return the certificates file path, may be null
229231
*/
@@ -514,7 +516,9 @@ public Builder authenticator(@Nullable final Authenticator authenticator) {
514516
* such as tracing headers. To add custom headers use following code:
515517
* <pre>
516518
* ClientConfig config = new ClientConfig.Builder()
517-
* .host("<a href="https://us-east-1-1.aws.cloud2.influxdata.com">https://us-east-1-1.aws.cloud2.influxdata.com</a>")
519+
* .host("<a href="https://us-east-1-1.aws.cloud2.influxdata.com">
520+
* https://us-east-1-1.aws.cloud2.influxdata.com
521+
* </a>")
518522
* .token("my-token".toCharArray())
519523
* .database("my-database")
520524
* .headers(Map.of("X-Tracing-Id", "123"))

src/main/java/com/influxdb/v3/client/internal/FlightSqlClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private void setChannelTypeAndEventLoop(@Nonnull final NettyChannelBuilder netty
263263
}
264264
}
265265

266-
private ProxyDetector createProxyDetector(@Nonnull String url) {
266+
private ProxyDetector createProxyDetector(@Nonnull final String url) {
267267
URI proxyUri = URI.create(url);
268268
return (targetServerAddress) -> {
269269
InetSocketAddress targetAddress = (InetSocketAddress) targetServerAddress;

src/main/java/com/influxdb/v3/client/internal/RestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void request(@Nonnull final String path,
233233
}
234234
}
235235

236-
private X509TrustManager getX509TrustManagerFromFile(@Nonnull String filePath) {
236+
private X509TrustManager getX509TrustManagerFromFile(@Nonnull final String filePath) {
237237
try {
238238
KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());
239239
trustStore.load(null);

src/test/java/com/influxdb/v3/client/internal/RestClientTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
package com.influxdb.v3.client.internal;
2323

2424
import java.net.Authenticator;
25-
import java.net.InetSocketAddress;
2625
import java.net.PasswordAuthentication;
27-
import java.net.ProxySelector;
2826
import java.net.http.HttpClient;
2927
import java.net.http.HttpHeaders;
3028
import java.time.Duration;

0 commit comments

Comments
 (0)