You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2020/03/13 14:40:06 UTC

[camel] 05/09: Remove a call to toString as the value is always a String

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

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

commit 369b61af69a4e6f2d233d0501e4f38352f878140
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Mar 13 15:07:33 2020 +0100

    Remove a call to toString as the value is always a String
---
 .../src/main/java/org/apache/camel/impl/engine/DefaultRoute.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java b/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java
index d3d39e7..c280ea1 100644
--- a/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java
+++ b/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java
@@ -157,7 +157,7 @@ public class DefaultRoute extends ServiceSupport implements Route {
     @Override
     public String getDescription() {
         Object value = properties.get(Route.DESCRIPTION_PROPERTY);
-        return value != null ? value.toString() : null;
+        return value != null ? (String) value : null;
     }
 
     @Override