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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]