Skip to content

Commit

Permalink
[StatementSwitchToExpressionSwitch] Enable return switch conversion b…
Browse files Browse the repository at this point in the history
…y default. This default behavior can be manually overridden by using a command-line flag.

PiperOrigin-RevId: 719090319
  • Loading branch information
markhbrady authored and Error Prone Team committed Jan 24, 2025
1 parent 5db6f38 commit 172767e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static enum CaseQualifications {
this.enableReturnSwitchConversion =
flags
.getBoolean("StatementSwitchToExpressionSwitch:EnableReturnSwitchConversion")
.orElse(false);
.orElse(true);
this.enableAssignmentSwitchConversion =
flags
.getBoolean("StatementSwitchToExpressionSwitch:EnableAssignmentSwitchConversion")
Expand Down

0 comments on commit 172767e

Please sign in to comment.