diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/UnnecessaryLocalBeforeReturnRule.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/UnnecessaryLocalBeforeReturnRule.java index 44dad1b0e5..db6fdb2b4c 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/UnnecessaryLocalBeforeReturnRule.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/UnnecessaryLocalBeforeReturnRule.java @@ -27,8 +27,9 @@ import net.sourceforge.pmd.lang.symboltable.ScopedNode; public class UnnecessaryLocalBeforeReturnRule extends AbstractJavaRule { private static final BooleanProperty STATEMENT_ORDER_MATTERS = new BooleanProperty("statementOrderMatters", - "When there are other statements between obtaining the value for the local and returning the local, " - + "that must be preserved, then the local is considered valid.", true, 1.0f); + "If set to false this rule no longer requires the variable declaration and return statement to be " + + "on consecutive lines. Any variable that is used solely in a return statement will be reported.", + true, 1.0f); public UnnecessaryLocalBeforeReturnRule() { definePropertyDescriptor(STATEMENT_ORDER_MATTERS);