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 982fe20 commit ab1a4d4Copy full SHA for ab1a4d4
core/src/main/java/com/google/errorprone/bugpatterns/StatementSwitchToExpressionSwitch.java
@@ -181,7 +181,10 @@ enum NullDefaultKind {
181
@Inject
182
StatementSwitchToExpressionSwitch(ErrorProneFlags flags) {
183
this.enableDirectConversion =
184
- flags.getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion").orElse(true);
+ true
185
+ || flags
186
+ .getBoolean("StatementSwitchToExpressionSwitch:EnableDirectConversion")
187
+ .orElse(true);
188
this.enableReturnSwitchConversion =
189
flags
190
.getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
0 commit comments