Skip to content

Commit d7aad09

Browse files
cushonError Prone Team
authored andcommitted
Adjust indentation of // fall through comments after unknown commit
PiperOrigin-RevId: 740446427
1 parent 2d5a7f4 commit d7aad09

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/bugpattern/FallThrough.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ switch (input) {
1212
case 1:
1313
case 2:
1414
prepareOneOrTwo();
15-
// fall through
15+
// fall through
1616
case 3:
1717
handleOneTwoOrThree();
1818
break;

docs/bugpattern/StatementSwitchToExpressionSwitch.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private void foo(Suit suit) {
4040
System.out.println("Red diamonds");
4141
break;
4242
case SPADES:
43-
// Fall through
43+
// Fall through
4444
case CLUBS:
4545
bar();
4646
System.out.println("Black suit");
@@ -132,7 +132,7 @@ int score = 0;
132132
private void updateScore(Suit suit) {
133133
switch(suit) {
134134
case HEARTS:
135-
// Fall thru
135+
// Fall thru
136136
case DIAMONDS:
137137
score += -1;
138138
break;
@@ -175,16 +175,16 @@ private int foo(Suit suit){
175175
if (bar()) {
176176
break;
177177
}
178-
// Fall through
178+
// Fall through
179179
case CLUBS:
180180
if (baz()) {
181181
return 1;
182182
} else if (baz2()) {
183183
throw new AssertionError(...);
184184
}
185-
// Fall through
185+
// Fall through
186186
case SPADES:
187-
// Fall through
187+
// Fall through
188188
case DIAMONDS:
189189
return 0;
190190
}

0 commit comments

Comments
 (0)