You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2005/08/08 11:02:55 UTC
cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Ant.java
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
Re: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Ant.java
Posted by Matt Benson <gu...@yahoo.com>.
I'm so ashamed. :)
-Matt
--- peterreilly@apache.org wrote:
> 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
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org