[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: svn commit: r1502575 - /xerces/java/trunk/src/org/apache/xerces/dom/NodeImpl.java
From: mrglavas () apache ! org
Date: 2013-07-12 14:37:06
Message-ID: 20130712143706.7F8A723888A6 () eris ! apache ! org
[Download RAW message or body]
Author: mrglavas
Date: Fri Jul 12 14:37:06 2013
New Revision: 1502575
URL: http://svn.apache.org/r1502575
Log:
Minor optimization to lookupNamespacePrefix().
Modified:
xerces/java/trunk/src/org/apache/xerces/dom/NodeImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/dom/NodeImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/dom/NodeImpl.java?rev=1502575&r1=1502574&r2=1502575&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/dom/NodeImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/dom/NodeImpl.java Fri Jul 12 14:37:06 \
2013 @@ -1631,10 +1631,10 @@ public abstract class NodeImpl
int length = map.getLength();
for (int i=0;i<length;i++) {
Node attr = map.item(i);
- String attrPrefix = attr.getPrefix();
- String value = attr.getNodeValue();
namespace = attr.getNamespaceURI();
if (namespace !=null && \
namespace.equals("http://www.w3.org/2000/xmlns/")) { + String \
attrPrefix = attr.getPrefix(); + String value = \
attr.getNodeValue(); // DOM Level 2 nodes
if (((attr.getNodeName().equals("xmlns")) ||
(attrPrefix !=null && attrPrefix.equals("xmlns")) &&
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic