ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Ant.java
Date Mon, 08 Aug 2005 09:02:55 GMT
peterreilly    2005/08/08 02:02:55

  Modified:    src/main/org/apache/tools/ant/taskdefs Ant.java
  Log:
  Replace x == "" with "".equals(x) to check if we are
  looking at the empty target
  Obtained from: Alexey Panchenko
  
  Revision  Changes    Path
  1.124     +1 -1      ant/src/main/org/apache/tools/ant/taskdefs/Ant.java
  
  Index: Ant.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Ant.java,v
  retrieving revision 1.123
  retrieving revision 1.124
  diff -u -r1.123 -r1.124
  --- Ant.java	10 Jun 2005 23:06:11 -0000	1.123
  +++ Ant.java	8 Aug 2005 09:02:55 -0000	1.124
  @@ -381,7 +381,7 @@
               addReferences();
   
               if (locals.size() > 0 && !(locals.size() == 1 
  -                                       && locals.get(0) == "")) {
  +                                       && "".equals(locals.get(0)))) {
                   BuildException be = null;
                   try {
                       log("Entering " + antFile + "...", Project.MSG_VERBOSE);
  
  
  

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


Mime
View raw message