Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused method #960

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void doGetTopic(RoutingContext routingContext) {
ArrayNode partitionsArray = JsonUtils.createArrayNode();
root.put("name", topicName);
Collection<ConfigEntry> configEntries = configDescriptions.values().iterator().next().entries();
if (configEntries.size() > 0) {
if (!configEntries.isEmpty()) {
ObjectNode configs = JsonUtils.createObjectNode();
configEntries.forEach(configEntry -> configs.put(configEntry.name(), configEntry.value()));
root.set("configs", configs);
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/io/strimzi/kafka/bridge/http/HttpBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -639,18 +639,6 @@ private void closeConnectionEndpoint(HttpConnection connection) {
}
}

private EmbeddedFormat contentTypeToFormat(String contentType) {
switch (contentType) {
case BridgeContentType.KAFKA_JSON_BINARY:
return EmbeddedFormat.BINARY;
case BridgeContentType.KAFKA_JSON_JSON:
return EmbeddedFormat.JSON;
case BridgeContentType.KAFKA_JSON_TEXT:
return EmbeddedFormat.TEXT;
}
throw new IllegalArgumentException(contentType);
}

private boolean isAlive() {
return this.isReady;
}
Expand Down
Loading