You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2021/02/16 13:01:09 UTC

[cxf] branch CXF-8422 created (now 267c1b7)

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

reta pushed a change to branch CXF-8422
in repository https://gitbox.apache.org/repos/asf/cxf.git.


      at 267c1b7  Addressing code review comments

This branch includes the following new commits:

     new 267c1b7  Addressing code review comments

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[cxf] 01/01: Addressing code review comments

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch CXF-8422
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 267c1b7dbca08cdc6eae090d41ef2a73cfc20f3e
Author: reta <dr...@gmail.com>
AuthorDate: Tue Feb 16 08:00:30 2021 -0500

    Addressing code review comments
---
 .../org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java b/rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
index 198a369..947e84a 100644
--- a/rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
+++ b/rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
@@ -728,16 +728,15 @@ public class DynamicClientFactory {
     }
 
     private URL composeUrl(String s) {
-        try {
-            try (URIResolver resolver = new URIResolver(null, s, getClass())) {
-                if (resolver.isResolved()) {
-                    return resolver.getURI().toURL();
-                }
+        try (URIResolver resolver = new URIResolver(null, s, getClass())) {
+            if (resolver.isResolved()) {
+                return resolver.getURI().toURL();
             }
-            throw new ServiceConstructionException(new Message("COULD_NOT_RESOLVE_URL", LOG, s));
         } catch (IOException e) {
             throw new ServiceConstructionException(new Message("COULD_NOT_RESOLVE_URL", LOG, s), e);
         }
+        
+        throw new ServiceConstructionException(new Message("COULD_NOT_RESOLVE_URL", LOG, s));
     }
 
     static class InnerErrorListener {