ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r449000 - /ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/LogContains.java
Date Fri, 22 Sep 2006 17:05:12 GMT
Author: mbenson
Date: Fri Sep 22 10:05:12 2006
New Revision: 449000

URL: http://svn.apache.org/viewvc?view=rev&rev=449000
Log:
cleanup

Modified:
    ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/LogContains.java

Modified: ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/LogContains.java
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/LogContains.java?view=diff&rev=449000&r1=448999&r2=449000
==============================================================================
--- ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/LogContains.java (original)
+++ ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/LogContains.java Fri Sep 22
10:05:12 2006
@@ -57,7 +57,7 @@
             throw new BuildException("the text attribute is required");
         }
         Object o = getProject().getReference(LogCapturer.REFERENCE_ID);
-        if (o != null && o instanceof LogCapturer) {
+        if (o instanceof LogCapturer) {
             LogCapturer c = (LogCapturer) o;
             String log;
             switch (logLevel) {
@@ -81,8 +81,7 @@
                 throw new BuildException("Unknown logLevel: " + logLevel);
             }
             return log.indexOf(text) > -1;
-        } else {
-            return false;
         }
+        return false;
     }
-}
\ No newline at end of file
+}



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


Mime
View raw message