Skip to content

Commit 831645f

Browse files
cushonError Prone Team
authored andcommitted
Reformat with latest version of google-java-format
PiperOrigin-RevId: 740762992
1 parent d7aad09 commit 831645f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

core/src/test/java/com/google/errorprone/bugpatterns/testdata/EmptyIfStatementNegativeCases.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
package com.google.errorprone.bugpatterns.testdata;
18+
1819
/**
1920
* @author [email protected] (Eddie Aftandilian)
2021
*/

core/src/test/java/com/google/errorprone/bugpatterns/testdata/EmptyIfStatementPositiveCases.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ public class EmptyIfStatementPositiveCases {
2525
public static void positiveCase1() {
2626
int i = 10;
2727
// BUG: Diagnostic contains: if (i == 10) {
28-
if (i == 10); {
28+
if (i == 10)
29+
;
30+
{
2931
i++;
3032
}
3133
}
3234

3335
public static void positiveCase2() {
3436
int i = 10;
3537
// BUG: Diagnostic contains: if (i == 10)
36-
if (i == 10);
38+
if (i == 10)
39+
;
3740
i++;
3841
System.out.println("foo");
3942
}
@@ -50,9 +53,10 @@ public static void positiveCase3() {
5053
public static void positiveCase4() {
5154
int i = 10;
5255
// BUG: Diagnostic contains: remove this line
53-
if (i == 10) ;
56+
if (i == 10)
57+
;
5458
}
55-
59+
5660
public static void positiveCase5() {
5761
int i = 10;
5862
if (i == 10)

0 commit comments

Comments
 (0)