You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2018/10/08 01:26:49 UTC

[cxf] 02/04: [CXF-7827]use .toString() instead of classcast

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

ffang pushed a commit to branch 3.2.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 764a770854c16f407e49cb3ca162b6b1a5152208
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Mon Aug 27 17:15:22 2018 +0800

    [CXF-7827]use .toString() instead of classcast
    
    (cherry picked from commit b04ed235952c9352454b1780c54a5d86375e6990)
---
 core/src/main/java/org/apache/cxf/endpoint/ServerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/cxf/endpoint/ServerImpl.java b/core/src/main/java/org/apache/cxf/endpoint/ServerImpl.java
index 089859c..b6ade80 100644
--- a/core/src/main/java/org/apache/cxf/endpoint/ServerImpl.java
+++ b/core/src/main/java/org/apache/cxf/endpoint/ServerImpl.java
@@ -89,7 +89,7 @@ public class ServerImpl implements Server {
             RegexLoggingFilter filter = new RegexLoggingFilter();
             filter.setPattern("jms(.*?)password=+([^ ]+)[.]");
             filter.setGroup(2);
-            wantFilter = (String)filter.filter(wantFilter);
+            wantFilter = filter.filter(wantFilter).toString();
         }
         LOG.info("Setting the server's publish address to be " + wantFilter);
         serverRegistry = bus.getExtension(ServerRegistry.class);