Rename builder method
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user