Rename builder method

This commit is contained in:
Juan Martín Sotuyo Dodero
2017-11-04 19:19:39 -03:00
parent ac2ff0f6af
commit 5d6a03612e
37 changed files with 55 additions and 50 deletions

View File

@@ -15,7 +15,7 @@ public class AvoidDeeplyNestedIfStmtsRule extends AbstractApexRule {
private int depthLimit;
private static final IntegerProperty PROBLEM_DEPTH_DESCRIPTOR
= IntegerProperty.builder("problemDepth")
= IntegerProperty.named("problemDepth")
.desc("The if statement depth reporting threshold")
.range(1, 25).defaultValue(3).uiOrder(1.0f).build();

View File

@@ -38,7 +38,7 @@ import net.sourceforge.pmd.properties.IntegerProperty;
public class StdCyclomaticComplexityRule extends AbstractApexRule {
public static final IntegerProperty REPORT_LEVEL_DESCRIPTOR
= IntegerProperty.builder("reportLevel")
= IntegerProperty.named("reportLevel")
.desc("Cyclomatic Complexity reporting threshold")
.range(1, 30).defaultValue(10).uiOrder(1.0f).build();