ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/types/resources BaseResourceCollectionWrapper.java
Date Fri, 05 Aug 2005 21:54:20 GMT
mbenson     2005/08/05 14:54:20

  Modified:    src/main/org/apache/tools/ant/types/resources
                        BaseResourceCollectionWrapper.java
  Log:
  Use FailFast iterators.
  
  Revision  Changes    Path
  1.2       +1 -1      ant/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java
  
  Index: BaseResourceCollectionWrapper.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BaseResourceCollectionWrapper.java	5 Aug 2005 17:27:14 -0000	1.1
  +++ BaseResourceCollectionWrapper.java	5 Aug 2005 21:54:20 -0000	1.2
  @@ -87,7 +87,7 @@
               return ((BaseResourceCollectionWrapper) getCheckedRef()).iterator();
           }
           dieOnCircularReference();
  -        return cacheCollection().iterator();
  +        return new FailFast(this, cacheCollection().iterator());
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message