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