Skip to content

Commit 0726114

Browse files
committed
Clean code
1 parent 5392e77 commit 0726114

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

api/src/main/java/io/kafbat/ui/service/KafkaClusterFactory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,9 @@ private boolean schemaRegistryConfigured(ClustersProperties.Cluster clusterPrope
167167
}
168168

169169
private ReactiveFailover<KafkaSrClientApi> schemaRegistryClient(ClustersProperties.Cluster clusterProperties) {
170-
171-
172-
//System.out.println("Creating Schema Registry Client for cluster: " + clusterProperties.getName());
170+
173171
var auth = Optional.ofNullable(clusterProperties.getSchemaRegistryAuth())
174172
.orElse(new ClustersProperties.SchemaRegistryAuth());
175-
//System.out.println("Auth details: " + auth.toString());
176173
WebClient webClient = new WebClientConfigurator()
177174
.configureSsl(clusterProperties.getSsl(), clusterProperties.getSchemaRegistrySsl())
178175
.configureBasicAuth(auth.getUsername(), auth.getPassword())

api/src/main/java/io/kafbat/ui/util/WebClientConfigurator.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import javax.annotation.Nullable;
2020
import javax.net.ssl.KeyManagerFactory;
2121
import javax.net.ssl.TrustManagerFactory;
22-
import javax.validation.constraints.Null;
2322
import lombok.SneakyThrows;
2423
import org.openapitools.jackson.nullable.JsonNullableModule;
2524
import org.springframework.http.MediaType;
@@ -58,8 +57,6 @@ private static ObjectMapper defaultOM() {
5857
}
5958

6059
public WebClientConfigurator configureBearerTokenAuth(@Nullable String bearerAuthCustomProviderClass) {
61-
//System.out.println("Configuring GCP Bearer Auth in web client");
62-
//System.out.println("Bearer Auth Custom Provider Class: " + bearerAuthCustomProviderClass);
6360
if (Objects.equals(bearerAuthCustomProviderClass, GCP_BEARER_AUTH_CUSTOM_PROVIDER_CLASS)) {
6461
builder.filter(createGcpBearerAuthFilter());
6562
}

0 commit comments

Comments
 (0)