Skip to content

Commit ab1a4d4

Browse files
markhbradyError Prone Team
authored andcommitted
Max Files for flume
PiperOrigin-RevId: 721968682
1 parent 982fe20 commit ab1a4d4

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
@@ -181,7 +181,10 @@ enum NullDefaultKind {
181181
@Inject
182182
StatementSwitchToExpressionSwitch(ErrorProneFlags flags) {
183183
this.enableDirectConversion =
184-
flags.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion").orElse(true);
184+
true
185+
|| flags
186+
.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion")
187+
.orElse(true);
185188
this.enableReturnSwitchConversion =
186189
flags
187190
.getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")

0 commit comments

Comments
 (0)