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 175f4c8 commit d09bbceCopy full SHA for d09bbce
core/src/main/java/com/google/errorprone/bugpatterns/StatementSwitchToExpressionSwitch.java
@@ -162,9 +162,10 @@ static enum CaseQualifications {
162
this.enableDirectConversion =
163
flags.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion").orElse(true);
164
this.enableReturnSwitchConversion =
165
- flags
166
- .getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
167
- .orElse(true);
+ true
+ || flags
+ .getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
168
+ .orElse(true);
169
this.enableAssignmentSwitchConversion =
170
flags
171
.getBoolean("StatementSwitchToExpressionSwitch:EnableAssignmentSwitchConversion")
0 commit comments