Author: veithen
Date: Sat May 23 16:51:41 2015
New Revision: 1681368
URL: http://svn.apache.org/r1681368
Log:
Minor code simplification.
Modified:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/factory/AbstractOMMetaFactory.java
Modified:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/factory/AbstractOMMetaFactory.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/factory/AbstractOMMetaFactory.java?rev=1681368&r1=1681367&r2=1681368&view=diff
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/factory/AbstractOMMetaFactory.java
(original)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/factory/AbstractOMMetaFactory.java
Sat May 23 16:51:41 2015
@@ -82,19 +82,17 @@ public abstract class AbstractOMMetaFact
if (systemId != null) {
if (encoding == null) {
reader =
StAXUtils.createXMLStreamReader(configuration, systemId, is.getByteStream());
- closeable = null;
} else {
throw new UnsupportedOperationException();
}
} else {
if (encoding == null) {
reader =
StAXUtils.createXMLStreamReader(configuration, is.getByteStream());
- closeable = null;
} else {
reader =
StAXUtils.createXMLStreamReader(configuration, is.getByteStream(), encoding);
- closeable = null;
}
}
+ closeable = null;
} else if (is.getCharacterStream() != null) {
reader = StAXUtils.createXMLStreamReader(configuration,
is.getCharacterStream());
closeable = null;