Browse Source

Remove the redundant nullcheck of value known to be non-null.

This statement contains a redundant check of a known non-null s against the constant null.
http://findbugs.sourceforge.net/bugDescriptions.html#RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE
master
Kui LIU Stefan Bodewig 7 years ago
parent
commit
9ec11ae3b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/dispatch/DispatchUtils.java

+ 1
- 1
src/main/org/apache/tools/ant/dispatch/DispatchUtils.java View File

@@ -64,7 +64,7 @@ public class DispatchUtils {
final Object o = actionM.invoke(dispatchable, (Object[]) null);
if (o != null) {
final String s = o.toString();
if (s != null && s.trim().length() > 0) {
if (s.trim().length() > 0) {
methodName = s.trim();
Method executeM = null;
executeM = dispatchable.getClass().getMethod(


Loading…
Cancel
Save