We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb990c commit ad057f6Copy full SHA for ad057f6
core/src/main/java/com/google/errorprone/bugpatterns/StatementSwitchToExpressionSwitch.java
@@ -161,9 +161,10 @@ static enum CaseQualifications {
161
this.enableDirectConversion =
162
flags.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion").orElse(false);
163
this.enableReturnSwitchConversion =
164
- flags
165
- .getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
166
- .orElse(true);
+ true
+ || flags
+ .getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
167
+ .orElse(true);
168
this.enableAssignmentSwitchConversion =
169
flags
170
.getBoolean("StatementSwitchToExpressionSwitch:EnableAssignmentSwitchConversion")
0 commit comments