You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mt...@apache.org on 2019/04/07 19:39:54 UTC

svn commit: r1857085 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java

Author: mthl
Date: Sun Apr  7 19:39:54 2019
New Revision: 1857085

URL: http://svn.apache.org/viewvc?rev=1857085&view=rev
Log:
Improved: Remove unused private ‘UnsupportedClassConverter’ class (OFBIZ-10908)

Modified:
    ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java

Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java?rev=1857085&r1=1857084&r2=1857085&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java Sun Apr  7 19:39:54 2019
@@ -73,11 +73,6 @@ import org.xml.sax.SAXParseException;
 import org.xml.sax.helpers.DefaultHandler;
 
 import com.thoughtworks.xstream.XStream;
-import com.thoughtworks.xstream.converters.Converter;
-import com.thoughtworks.xstream.converters.MarshallingContext;
-import com.thoughtworks.xstream.converters.UnmarshallingContext;
-import com.thoughtworks.xstream.io.HierarchicalStreamReader;
-import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
 
 /**
  * Utilities methods to simplify dealing with JAXP and DOM XML parsing
@@ -1175,29 +1170,6 @@ public final class UtilXml {
         }
     }
 
-    /** This method is now useless
-     * Enhance rather the white list created by XStream::setupDefaultSecurity
-     * using xstream::allowTypesByWildcard with your own classes  
-     */
-    @Deprecated
-    private static class UnsupportedClassConverter implements Converter {
-
-        @Override
-        public boolean canConvert(@SuppressWarnings("rawtypes") Class arg0) {
-            return java.lang.ProcessBuilder.class.equals(arg0);
-        }
-
-        @Override
-        public void marshal(Object arg0, HierarchicalStreamWriter arg1, MarshallingContext arg2) {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public Object unmarshal(HierarchicalStreamReader arg0, UnmarshallingContext arg1) {
-            throw new UnsupportedOperationException();
-        }
-    }
-
     /**
      * get node name without any prefix
      * @param node