Browse Source

Replace x == "" with "".equals(x) to check if we are

looking at the empty target
Obtained from: Alexey Panchenko


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278506 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
61ae8e924f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Ant.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Ant.java View File

@@ -381,7 +381,7 @@ public class Ant extends Task {
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);


Loading…
Cancel
Save