You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by ra...@apache.org on 2004/12/05 19:51:50 UTC
cvs commit: xml-security/src/org/apache/xml/security/c14n/helper AttrCompare.java
raul 2004/12/05 10:51:50
Modified: src/org/apache/xml/security/c14n/helper AttrCompare.java
Log:
Little small constant optimization.
Revision Changes Path
1.11 +3 -2 xml-security/src/org/apache/xml/security/c14n/helper/AttrCompare.java
Index: AttrCompare.java
===================================================================
RCS file: /home/cvs/xml-security/src/org/apache/xml/security/c14n/helper/AttrCompare.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- AttrCompare.java 3 Aug 2004 18:01:22 -0000 1.10
+++ AttrCompare.java 5 Dec 2004 18:51:50 -0000 1.11
@@ -44,6 +44,7 @@
private final int ATTR0_BEFORE_ATTR1 = -1;
private final int ATTR1_BEFORE_ATTR0 = 1;
+ private final static String XMLNS=Constants.NamespaceSpecNS;
/**
* Compares two attributes based on the C14n specification.
*
@@ -70,9 +71,9 @@
String namespaceURI1 = attr1.getNamespaceURI();
boolean isNamespaceAttr0 =
- Constants.NamespaceSpecNS.equals(namespaceURI0);
+ XMLNS.equals(namespaceURI0);
boolean isNamespaceAttr1 =
- Constants.NamespaceSpecNS.equals(namespaceURI1);
+ XMLNS.equals(namespaceURI1);
if (isNamespaceAttr0) {
if (isNamespaceAttr1) {