ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r398718 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/reader/ADBNamespaceContext.java
Date Mon, 01 May 2006 22:39:24 GMT
Author: dims
Date: Mon May  1 15:39:20 2006
New Revision: 398718

URL: http://svn.apache.org/viewcvs?rev=398718&view=rev
Log:
don't do both contains and indexOf :)

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/reader/ADBNamespaceContext.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/reader/ADBNamespaceContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/reader/ADBNamespaceContext.java?rev=398718&r1=398717&r2=398718&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/reader/ADBNamespaceContext.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/reader/ADBNamespaceContext.java
Mon May  1 15:39:20 2006
@@ -72,8 +72,8 @@
 
     public String getPrefix(String uri) {
         //do the corrections as per the javadoc
-        if (uriStack.contains(uri)){
-            int index = uriStack.indexOf(uri);
+        int index = uriStack.indexOf(uri);
+        if (index != -1){
             return (String)prefixStack.get(index);
         }
 



Mime
View raw message