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 2012/12/29 20:40:28 UTC
svn commit: r1426814 -
/webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMChildrenQNameIterator.java
Author: veithen
Date: Sat Dec 29 19:40:28 2012
New Revision: 1426814
URL: http://svn.apache.org/viewvc?rev=1426814&view=rev
Log:
Removed unused code.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMChildrenQNameIterator.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMChildrenQNameIterator.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMChildrenQNameIterator.java?rev=1426814&r1=1426813&r2=1426814&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMChildrenQNameIterator.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMChildrenQNameIterator.java Sat Dec 29 19:40:28 2012
@@ -69,29 +69,4 @@ public class OMChildrenQNameIterator ext
return false;
}
}
-
- /**
- * Prior versions of the OMChildrenQNameIterator used the following
- * logic to check equality. This algorithm is incorrect; however some customers
- * have dependency on this behavior. This method is retained (but deprecated) to allow
- * them an opportunity to use the old algorithm.
- *
- * @param searchQName
- * @param currentQName
- * @return true using legacy equality match
- * @deprecated
- */
- public static boolean isEquals_Legacy(QName searchQName, QName currentQName) {
-
- // if the given localname is null, whatever value this.qname has, its a match. But can one give a QName without a localName ??
- String localPart = searchQName.getLocalPart();
- boolean localNameMatch =(localPart == null) || (localPart.equals("")) ||
- ((currentQName != null) && currentQName.getLocalPart().equals(localPart));
- String namespaceURI = searchQName.getNamespaceURI();
- boolean namespaceURIMatch = (namespaceURI.equals(""))||
- ((currentQName != null) && currentQName.getNamespaceURI().equals(namespaceURI));
- return localNameMatch && namespaceURIMatch;
- }
-
-
}