You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2015/08/20 20:55:50 UTC

svn commit: r1696840 - /webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java

Author: veithen
Date: Thu Aug 20 18:55:50 2015
New Revision: 1696840

URL: http://svn.apache.org/r1696840
Log:
Tweak OMSourcedElementImpl so that one of the constructors simply delegates to the constructor in the superclass.

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

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java?rev=1696840&r1=1696839&r2=1696840&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java (original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java Thu Aug 20 18:55:50 2015
@@ -65,7 +65,7 @@ public class OMSourcedElementImpl extend
     private OMDataSource dataSource;
 
     /** Namespace for element, needed in order to bypass base class handling. */
-    private OMNamespace definedNamespace = null;
+    private OMNamespace definedNamespace;
     
     /**
      * Flag indicating whether the {@link #definedNamespace} attribute has been set. If this flag is
@@ -77,7 +77,7 @@ public class OMSourcedElementImpl extend
     private boolean definedNamespaceSet;
 
     /** Flag for parser provided to base element class. */
-    private boolean isExpanded;
+    private boolean isExpanded = true;
 
     private static final Log log = LogFactory.getLog(OMSourcedElementImpl.class);
     
@@ -156,8 +156,6 @@ public class OMSourcedElementImpl extend
     public OMSourcedElementImpl(OMContainer parent, String localName, OMNamespace ns,
             OMXMLParserWrapper builder, OMFactory factory, boolean generateNSDecl) {
         super(parent, localName, ns, builder, factory, generateNSDecl);
-        definedNamespace = ns;
-        isExpanded = true;
     }
 
     /**