java UnnecessaryLocalBeforeReturn: Update property description

This commit is contained in:
Andreas Dangel
2017-04-22 10:58:45 +02:00
parent b6aae557b4
commit ece6d81163

View File

@ -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);