cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [cxf] 02/03: Fixing backmerge
Date Wed, 04 Oct 2017 11:51:35 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit a2f807e308546ceb8170d52c106b2b635b0e28de
Author: Colm O hEigeartaigh <coheigea@apache.org>
AuthorDate: Wed Oct 4 12:07:22 2017 +0100

    Fixing backmerge
---
 .../main/java/org/apache/cxf/helpers/DOMUtils.java | 49 ----------------------
 1 file changed, 49 deletions(-)

diff --git a/core/src/main/java/org/apache/cxf/helpers/DOMUtils.java b/core/src/main/java/org/apache/cxf/helpers/DOMUtils.java
index 0e20013..3c24e7b 100644
--- a/core/src/main/java/org/apache/cxf/helpers/DOMUtils.java
+++ b/core/src/main/java/org/apache/cxf/helpers/DOMUtils.java
@@ -57,32 +57,6 @@ public final class DOMUtils {
     private static final Map<ClassLoader, DocumentBuilder> DOCUMENT_BUILDERS
         = Collections.synchronizedMap(new WeakHashMap<ClassLoader, DocumentBuilder>());
     private static final String XMLNAMESPACE = "xmlns";
-<<<<<<< HEAD
-=======
-
-
-
-    static {
-        if (System.getProperty("java.version").startsWith("9")) {
-
-            try {
-                Method[] methods = DOMUtils.class.getClassLoader().
-                    loadClass("com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl").getMethods();
-                for (Method method : methods) {
-                    if (method.getName().equals("register")) {
-                        //this is the SAAJ impl in JDK9
-                        setJava9SAAJ(true);
-                        break;
-                    }
-                }
-            } catch (ClassNotFoundException cnfe) {
-                LogUtils.getL7dLogger(DOMUtils.class).finest(
-                    "can't load class com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl");
-            }
-
-        }
-    }
->>>>>>> 959a067ef2... Setting secure processing to true for DOMUtils
 
     private DOMUtils() {
     }
@@ -660,29 +634,6 @@ public final class DOMUtils {
         findAllElementsByTagNameNS(elem, nameSpaceURI, localName, ret);
         return ret;
     }
-<<<<<<< HEAD
-=======
-
-    /**
-     * Try to get the DOM Node from the SAAJ Node with JAVA9
-     * @param node The original node we need check
-     * @return The DOM node
-     */
-    public static Node getDomElement(Node node) {
-        if (node != null && isJava9SAAJ()) {
-            //java9 hack since EA 159
-            try {
-                Method method = node.getClass().getMethod("getDomElement");
-                node = (Node)method.invoke(node);
-            } catch (NoSuchMethodException e) {
-                //best effort to try, do nothing if NoSuchMethodException
-            } catch (Exception e) {
-                throw new RuntimeException(e);
-            }
-        }
-        return node;
-    }
->>>>>>> 959a067ef2... Setting secure processing to true for DOMUtils
 
     private static void findAllElementsByTagNameNS(Element el, String nameSpaceURI, String
localName,
                                                    List<Element> elementList) {

-- 
To stop receiving notification emails like this one, please contact
"commits@cxf.apache.org" <commits@cxf.apache.org>.

Mime
View raw message