From 2851afcb1afe8cceb5feadf9efbf6492ac869115 Mon Sep 17 00:00:00 2001 From: markbrady Date: Fri, 31 Jan 2025 18:04:03 -0800 Subject: [PATCH] Max Files for flume PiperOrigin-RevId: 721968682 --- .../bugpatterns/StatementSwitchToExpressionSwitch.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/StatementSwitchToExpressionSwitch.java b/core/src/main/java/com/google/errorprone/bugpatterns/StatementSwitchToExpressionSwitch.java index a4b44eebd92..d85c6f2427a 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/StatementSwitchToExpressionSwitch.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/StatementSwitchToExpressionSwitch.java @@ -161,9 +161,10 @@ static enum CaseQualifications { this.enableDirectConversion = flags.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion").orElse(false); this.enableReturnSwitchConversion = - flags - .getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion") - .orElse(true); + true + || flags + .getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion") + .orElse(true); this.enableAssignmentSwitchConversion = flags .getBoolean("StatementSwitchToExpressionSwitch:EnableAssignmentSwitchConversion")