incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xav...@apache.org
Subject svn commit: r537003 - /incubator/ivy/core/trunk/src/java/org/apache/ivy/core/IvyContext.java
Date Thu, 10 May 2007 21:38:51 GMT
Author: xavier
Date: Thu May 10 14:38:50 2007
New Revision: 537003

URL: http://svn.apache.org/viewvc?view=rev&rev=537003
Log:
FIX on pop implementation (IVY-497) (thanks to Jaroslaw Wypychowski)

Modified:
    incubator/ivy/core/trunk/src/java/org/apache/ivy/core/IvyContext.java

Modified: incubator/ivy/core/trunk/src/java/org/apache/ivy/core/IvyContext.java
URL: http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/java/org/apache/ivy/core/IvyContext.java?view=diff&rev=537003&r1=537002&r2=537003
==============================================================================
--- incubator/ivy/core/trunk/src/java/org/apache/ivy/core/IvyContext.java (original)
+++ incubator/ivy/core/trunk/src/java/org/apache/ivy/core/IvyContext.java Thu May 10 14:38:50
2007
@@ -183,9 +183,10 @@
 		synchronized(_contextMap){
 			Object o=_contextMap.get(key);
 			if(o==null) return false;
-			if(!o.equals(expectedValue)) return false;
 			if(o instanceof List){
 				if(((List)o).size()==0) return false;
+				Object top=((List)o).get(0);
+				if(!top.equals(expectedValue)) return false;				
 				((List)o).remove(0);
 				return true;
 			} else {



Mime
View raw message