Skip to content

Commit d743cf5

Browse files
committed
Fix formatting
1 parent f5246aa commit d743cf5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Diff for: driver/src/main/java/com/intellij/CouchbaseClientURI.java

+6-7
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class CouchbaseClientURI {
2424
private static final String HTTPS_SCHEMA = "couchbases://";
2525

2626
private static final Set<String> JDBC_KEYS = new HashSet<>(ContainerUtil.map(
27-
Arrays.asList(USER, PASSWORD, ENABLE_SSL, VERIFY_SERVER_CERTIFICATE, DEFAULT_BUCKET),
28-
key -> key.toLowerCase(Locale.ENGLISH)));
27+
Arrays.asList(USER, PASSWORD, ENABLE_SSL, VERIFY_SERVER_CERTIFICATE, DEFAULT_BUCKET),
28+
key -> key.toLowerCase(Locale.ENGLISH)));
2929

3030
private final String connectionString;
3131
private final String uri;
@@ -80,8 +80,7 @@ private void setLoggingLevel(Properties info, Map<String, List<String>> options)
8080
Level level;
8181
try {
8282
level = Level.parse(logLevel.toUpperCase(Locale.ENGLISH));
83-
}
84-
catch (IllegalArgumentException e) {
83+
} catch (IllegalArgumentException e) {
8584
e.printStackTrace();
8685
return;
8786
}
@@ -118,8 +117,8 @@ ClusterConnection createClusterConnection() throws SQLException {
118117
ClusterEnvironment environment = builder.build();
119118
ClusterConnection clusterConnection = new ClusterConnection(
120119
Cluster.connect(connectionStringWithSchema, ClusterOptions
121-
.clusterOptions(authenticator)
122-
.environment(environment)
120+
.clusterOptions(authenticator)
121+
.environment(environment)
123122
), environment);
124123
clusterConnection.initConnection(defaultBucket);
125124
return clusterConnection;
@@ -138,7 +137,7 @@ private Authenticator authenticate(ClusterEnvironment.Builder envBuilder) throws
138137

139138
SslKeyStoreConfig keyStore = SslKeyStoreConfig.create(SslKeyStoreConfig.Type.KEY_STORE);
140139

141-
if(userName == null || userName.isEmpty()) {
140+
if (userName == null || userName.isEmpty()) {
142141
return CertificateAuthenticator.fromKeyStore(
143142
keyStore.getPath(), keyStore.getPassword(), keyStore.getType());
144143
}

0 commit comments

Comments
 (0)