You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2010/03/24 22:48:35 UTC
svn commit: r927194 -
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java
Author: veithen
Date: Wed Mar 24 21:48:35 2010
New Revision: 927194
URL: http://svn.apache.org/viewvc?rev=927194&view=rev
Log:
Narrowed the scope of some local variables to improve readability of the code.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java?rev=927194&r1=927193&r2=927194&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java Wed Mar 24 21:48:35 2010
@@ -555,14 +555,12 @@ public class StAXOMBuilder extends StAXB
int namespaceCount = parser.getNamespaceCount();
- String nsprefix;
- String namespaceURIFromParser;
for (int i = 0; i < namespaceCount; i++) {
- nsprefix = parser.getNamespacePrefix(i);
+ String nsprefix = parser.getNamespacePrefix(i);
//if the namespace is not defined already when we write the start tag declare it
// check whether this is the default namespace and make sure we have not declared that earlier
- namespaceURIFromParser = parser.getNamespaceURI(i);
+ String namespaceURIFromParser = parser.getNamespaceURI(i);
if (nsprefix == null || "".equals(nsprefix)) {
String nsuri = parser.getNamespaceURI(i);
node.declareDefaultNamespace(nsuri == null ? "" : nsuri);