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

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

commit 56aad2830e4160170b3ba42089fed72ff512b181
Author: Tom Cunningham <[email protected]>
AuthorDate: Sat Feb 1 09:33:59 2025 -0500

    If is unnecessary - return value is same with or without the if (#2243)
    
    (cherry picked from commit 9aa8c12da8ecaeb34dcc6bd740d75d8ce73bea46)
---
 .../main/java/org/apache/cxf/tools/validator/internal/Stax2DOM.java    | 3 ---
 1 file changed, 3 deletions(-)

diff --git 
a/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/Stax2DOM.java
 
b/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/Stax2DOM.java
index 3bb20866b0..ad18295247 100644
--- 
a/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/Stax2DOM.java
+++ 
b/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/Stax2DOM.java
@@ -43,9 +43,6 @@ public class Stax2DOM {
     public Document getDocument(String wsdl) throws ToolException {
         try {
             URI wsdlURI = new URI(URIParserUtil.getAbsoluteURI(wsdl));
-            if (wsdlURI.toString().startsWith("http")) {
-                return getDocument(wsdlURI.toURL());
-            }
             return getDocument(wsdlURI.toURL());
         } catch (ToolException e) {
             throw e;

Reply via email to