Skip to content

Commit 2851afc

Browse files
markhbradyError Prone Team
authored and
Error Prone Team
committed
Max Files for flume
PiperOrigin-RevId: 721968682
1 parent 3347997 commit 2851afc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,10 @@ static enum CaseQualifications {
161161
this.enableDirectConversion =
162162
flags.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion").orElse(false);
163163
this.enableReturnSwitchConversion =
164-
flags
165-
.getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
166-
.orElse(true);
164+
true
165+
|| flags
166+
.getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
167+
.orElse(true);
167168
this.enableAssignmentSwitchConversion =
168169
flags
169170
.getBoolean("StatementSwitchToExpressionSwitch:EnableAssignmentSwitchConversion")

0 commit comments

Comments
 (0)