Skip to content

Commit 50c9cce

Browse files
markhbradyError Prone Team
authored andcommitted
[IfChainToSwitch] internal change
PiperOrigin-RevId: 930807392
1 parent 0e49531 commit 50c9cce

2 files changed

Lines changed: 76 additions & 75 deletions

File tree

core/src/main/java/com/google/errorprone/bugpatterns/IfChainToSwitch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public final class IfChainToSwitch extends BugChecker implements IfTreeMatcher {
121121

122122
@Inject
123123
IfChainToSwitch(ErrorProneFlags flags, ConstantExpressions constantExpressions) {
124-
enableMain = flags.getBoolean("IfChainToSwitch:EnableMain").orElse(false);
124+
enableMain = flags.getBoolean("IfChainToSwitch:EnableMain").orElse(true);
125125
enableSafe = flags.getBoolean("IfChainToSwitch:EnableSafe").orElse(false);
126126
maxChainLength = flags.getInteger("IfChainToSwitch:MaxChainLength").orElse(50);
127127
minChainLength = flags.getInteger("IfChainToSwitch:MinChainLength").orElse(5);

0 commit comments

Comments
 (0)