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 Restrict.java
Date Fri, 05 Aug 2005 22:02:51 GMT
mbenson     2005/08/05 15:02:51

  Modified:    src/main/org/apache/tools/ant/types/resources Restrict.java
  Log:
  FailFast adjustments
  
  Revision  Changes    Path
  1.5       +4 -1      ant/src/main/org/apache/tools/ant/types/resources/Restrict.java
  
  Index: Restrict.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/resources/Restrict.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Restrict.java	5 Aug 2005 18:07:11 -0000	1.4
  +++ Restrict.java	5 Aug 2005 22:02:51 -0000	1.5
  @@ -88,6 +88,9 @@
        * @param s the ResourceSelector to add.
        */
       public synchronized void add(ResourceSelector s) {
  +        if (s == null) {
  +            return;
  +        }
           super.add(s);
           FailFast.invalidate(this);
       }
  @@ -101,7 +104,7 @@
               return ((Restrict) getCheckedRef()).iterator();
           }
           dieOnCircularReference();
  -        return new FailFast(this, w.iterator());
  +        return w.iterator();
       }
   
       /**
  
  
  

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


Mime
View raw message