Skip to content

Commit

Permalink
Improved: Remove unused private ‘UnsupportedClassConverter’ class (OF…
Browse files Browse the repository at this point in the history
…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 264ed9c
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 264ed9c

Please sign in to comment.