abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1374724 - /abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Date Sun, 19 Aug 2012 10:24:18 GMT
Author: veithen
Date: Sun Aug 19 10:24:18 2012
New Revision: 1374724

URL: http://svn.apache.org/viewvc?rev=1374724&view=rev
Log:
Some code simplifications.

Modified:
    abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java

Modified: abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java?rev=1374724&r1=1374723&r2=1374724&view=diff
==============================================================================
--- abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java (original)
+++ abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java Sun
Aug 19 10:24:18 2012
@@ -329,32 +329,15 @@ public class FOMFactory extends OMLinked
     }
 
     public <T extends Element> T newExtensionElement(QName qname) {
-        return (T)newExtensionElement(qname, (OMContainer)null);
+        return (T)newExtensionElement(qname, null);
     }
 
     public <T extends Element> T newExtensionElement(QName qname, Base parent) {
-        return (T)newExtensionElement(qname, (OMContainer)parent);
-    }
-
-    private <T extends Element> T newExtensionElement(QName qname, OMContainer parent)
{
         String ns = qname.getNamespaceURI();
-        Element el = newExtensionElement(qname, parent, null);
+        Element el = (Element)createElement(qname, (OMContainer)parent, this, null);
         return (T)((ATOM_NS.equals(ns) || APP_NS.equals(ns)) ? el : factoriesMap.getElementWrapper(el));
     }
 
-    private <T extends Element> T newExtensionElement(QName qname, OMContainer parent,
OMXMLParserWrapper parserWrapper) {
-
-        // Element element = (parserWrapper == null) ?
-        // new FOMExtensibleElement(qname, parent, this) :
-        // new FOMExtensibleElement(qname, parent, this, parserWrapper);
-
-        Element element =
-            (parserWrapper == null) ? (Element)createElement(qname, parent, this, null)
-                : (Element)createElement(qname, parent, (FOMBuilder)parserWrapper);
-
-        return (T)element;
-    }
-
     public Control newControl() {
         return newControl(null);
     }



Mime
View raw message