We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09fd394 commit 1858d28Copy full SHA for 1858d28
core/src/main/java/com/google/errorprone/bugpatterns/StatementSwitchToExpressionSwitch.java
@@ -164,9 +164,10 @@ static enum CaseQualifications {
164
this.enableDirectConversion =
165
flags.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion").orElse(true);
166
this.enableReturnSwitchConversion =
167
- flags
168
- .getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
169
- .orElse(true);
+ true
+ || flags
+ .getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
170
+ .orElse(true);
171
this.enableAssignmentSwitchConversion =
172
flags
173
.getBoolean("StatementSwitchToExpressionSwitch:EnableAssignmentSwitchConversion")
0 commit comments