This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 1c22b6dc16c5c23c5dcc4a815ad68d3e8321c66c Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Mon Jan 26 14:35:19 2026 +0000 (chores): ensure usage of platform-specific newline characters --- .../vertx/websocket/VertxWebsocketDevConsole.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/camel-vertx/camel-vertx-websocket/src/main/java/org/apache/camel/component/vertx/websocket/VertxWebsocketDevConsole.java b/components/camel-vertx/camel-vertx-websocket/src/main/java/org/apache/camel/component/vertx/websocket/VertxWebsocketDevConsole.java index 6562c359179d..1ed2cacb624c 100644 --- a/components/camel-vertx/camel-vertx-websocket/src/main/java/org/apache/camel/component/vertx/websocket/VertxWebsocketDevConsole.java +++ b/components/camel-vertx/camel-vertx-websocket/src/main/java/org/apache/camel/component/vertx/websocket/VertxWebsocketDevConsole.java @@ -49,11 +49,11 @@ public class VertxWebsocketDevConsole extends AbstractDevConsole { for (Map.Entry<VertxWebsocketHostKey, List<VertxWebsocketConsumer>> hostEntry : consumersByHost.entrySet()) { VertxWebsocketHostKey hostKey = hostEntry.getKey(); - sb.append(String.format("\n Host: %s", hostKey.toString())); + sb.append(String.format("%n Host: %s", hostKey.toString())); for (VertxWebsocketConsumer consumer : hostEntry.getValue()) { String path = consumer.getEndpoint().getConfiguration().getWebsocketURI().getPath(); - sb.append(String.format("\n Path: %s", path)); + sb.append(String.format("%n Path: %s", path)); List<VertxWebsocketPeer> pathPeers = consumer.getEndpoint().getVertxHostRegistry() .values() @@ -62,24 +62,24 @@ public class VertxWebsocketDevConsole extends AbstractDevConsole { .filter(peer -> peer.getRawPath().equals(path)) .toList(); - sb.append(String.format("\n Connected Peers (%d): ", pathPeers.size())); + sb.append(String.format("%n Connected Peers (%d): ", pathPeers.size())); for (VertxWebsocketPeer peer : pathPeers) { - sb.append(String.format("\n ID: %s", peer.getConnectionKey())); - sb.append(String.format("\n Path: %s", peer.getPath())); - sb.append(String.format("\n Raw Path: %s", peer.getRawPath())); + sb.append(String.format("%n ID: %s", peer.getConnectionKey())); + sb.append(String.format("%n Path: %s", peer.getPath())); + sb.append(String.format("%n Raw Path: %s", peer.getRawPath())); ServerWebSocket webSocket = peer.getWebSocket(); SocketAddress socketAddress = webSocket.localAddress(); String hostAddress = socketAddress == null ? "Unknown" : socketAddress.hostAddress(); - sb.append(String.format("\n Host Address: %s", hostAddress)); + sb.append(String.format("%n Host Address: %s", hostAddress)); if (webSocket.subProtocol() != null) { - sb.append(String.format("\n Sub Protocol: %s", webSocket.subProtocol())); + sb.append(String.format("%n Sub Protocol: %s", webSocket.subProtocol())); } if (includeHeaders) { - sb.append(String.format("\n Headers: %s", webSocket.headers().entries().stream() + sb.append(String.format("%n Headers: %s", webSocket.headers().entries().stream() .map(e -> e.getKey() + "=" + e.getValue()).collect(Collectors.joining(", ")))); } }
