We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3347997 commit 2851afcCopy full SHA for 2851afc
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