Skip to content

Commit cf6ed9c

Browse files
markhbradyError Prone Team
authored andcommitted
Max Files for flume
PiperOrigin-RevId: 721968682
1 parent 49b3262 commit cf6ed9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ enum CaseQualifications {
167167
@Inject
168168
StatementSwitchToExpressionSwitch(ErrorProneFlags flags) {
169169
this.enableDirectConversion =
170-
flags.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion").orElse(true);
170+
true
171+
|| flags
172+
.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion")
173+
.orElse(true);
171174
this.enableReturnSwitchConversion =
172175
flags
173176
.getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")

0 commit comments

Comments
 (0)