Skip to content

Commit d5f6366

Browse files
markhbradyError Prone Team
authored andcommitted
[RefactorSwitch] flip flag to enable simplification of switches
PiperOrigin-RevId: 899771743
1 parent 769cd20 commit d5f6366

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public final class RefactorSwitch extends BugChecker
106106
RefactorSwitch(ErrorProneFlags flags) {
107107
enableAssignmentSwitch = flags.getBoolean("RefactorSwitch:EnableAssignmentSwitch").orElse(true);
108108
enableReturnSwitch = flags.getBoolean("RefactorSwitch:EnableReturnSwitch").orElse(true);
109-
enableSimplifySwitch = flags.getBoolean("RefactorSwitch:EnableSimplifySwitch").orElse(false);
109+
enableSimplifySwitch = flags.getBoolean("RefactorSwitch:EnableSimplifySwitch").orElse(true);
110110
}
111111

112112
@Override

0 commit comments

Comments
 (0)