ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1684027 - /webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java
Date Sun, 07 Jun 2015 12:17:32 GMT
Author: veithen
Date: Sun Jun  7 12:17:32 2015
New Revision: 1684027

URL: http://svn.apache.org/r1684027
Log:
Remove some leftovers from the hack that was made obsolete by AXIOM-392.

Modified:
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java?rev=1684027&r1=1684026&r2=1684027&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java
Sun Jun  7 12:17:32 2015
@@ -25,25 +25,18 @@ import org.apache.axiom.om.OMContainer;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMException;
 import org.apache.axiom.om.OMNamespace;
-import org.apache.axiom.om.OMOutputFormat;
 import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.common.serializer.push.OutputException;
-import org.apache.axiom.om.impl.common.serializer.push.Serializer;
 import org.apache.axiom.om.impl.llom.OMElementImpl;
-import org.apache.axiom.om.impl.llom.OMNodeImpl;
 import org.apache.axiom.soap.SOAPBody;
 import org.apache.axiom.soap.SOAPConstants;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
 import org.apache.axiom.soap.SOAPFaultDetail;
-import org.apache.axiom.soap.SOAPFaultNode;
-import org.apache.axiom.soap.SOAPFaultRole;
 import org.apache.axiom.soap.SOAPProcessingException;
 
 import javax.xml.namespace.QName;
 import java.io.PrintWriter;
 import java.io.StringWriter;
-import java.util.Iterator;
 
 /** Class SOAPFaultImpl */
 public abstract class SOAPFaultImpl extends SOAPElement
@@ -123,19 +116,6 @@ public abstract class SOAPFaultImpl exte
         faultDetailEnty.setText(sw.getBuffer().toString());
     }
 
-    public void internalSerialize(Serializer serializer, OMOutputFormat format, boolean cache)
-            throws OutputException {
-        serializer.serializeStartpart(this);
-        for (Iterator it = getChildren(); it.hasNext(); ) {
-            OMNodeImpl child = (OMNodeImpl)it.next();
-            // TODO: AXIOM-392
-            if (!((child instanceof SOAPFaultRole || child instanceof SOAPFaultNode) &&
((OMElement)child).getText().length() == 0)) {
-                child.internalSerialize(serializer, format, cache);
-            }
-        }
-        serializer.writeEndElement();
-    }
-
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
         return e == null ?
                 ((SOAPFactory)getOMFactory()).createSOAPFault((SOAPBody) targetParent):



Mime
View raw message