You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/09/13 10:43:31 UTC

[camel] branch main updated: Polished

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new b0339a00640 Polished
b0339a00640 is described below

commit b0339a0064087025ceab4c65a5625d5d97be16dd
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Sep 13 12:43:17 2022 +0200

    Polished
---
 .../main/java/org/apache/camel/impl/console/EndpointsDevConsole.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/camel-console/src/main/java/org/apache/camel/impl/console/EndpointsDevConsole.java b/core/camel-console/src/main/java/org/apache/camel/impl/console/EndpointsDevConsole.java
index 95b306ae50f..7f9ab81b56d 100644
--- a/core/camel-console/src/main/java/org/apache/camel/impl/console/EndpointsDevConsole.java
+++ b/core/camel-console/src/main/java/org/apache/camel/impl/console/EndpointsDevConsole.java
@@ -39,11 +39,10 @@ public class EndpointsDevConsole extends AbstractDevConsole {
 
         EndpointRegistry reg = getCamelContext().getEndpointRegistry();
         sb.append(
-                String.format("\n    Endpoints: %s (static: %s dynamic: %s", reg.size(), reg.staticSize(), reg.dynamicSize()));
-        sb.append(String.format("\n    Maximum Cache Size: %s", reg.getMaximumCacheSize()));
+                String.format("    Endpoints: %s (static: %s dynamic: %s\n", reg.size(), reg.staticSize(), reg.dynamicSize()));
+        sb.append(String.format("    Maximum Cache Size: %s\n", reg.getMaximumCacheSize()));
         Collection<Endpoint> col = reg.getReadOnlyValues();
         if (!col.isEmpty()) {
-            sb.append("\n");
             for (Endpoint e : col) {
                 sb.append(String.format("\n    %s", e.toString()));
             }