Skip to content
Permalink
Browse files

Improved: Remove unused private ‘UnsupportedClassConverter’ class (OF…

…BIZ-10908)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857085 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Apr 7, 2019
1 parent be39e09 commit 264ed9c8d21e70d8f5478c4c508886838756f5e5
Showing with 0 additions and 28 deletions.
  1. +0 −28 framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java
@@ -73,11 +73,6 @@
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 void warning(SAXParseException exception) {
}
}

/** 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

0 comments on commit 264ed9c

Please sign in to comment.
You can’t perform that action at this time.