-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from ohorn/google-java-format-aosp
Support for google-java-format's style option (AOSP style)
- Loading branch information
Showing
10 changed files
with
141 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
testlib/src/test/resources/java/googlejavaformat/JavaCodeFormattedAOSP.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
import mylib.UsedA; | ||
import mylib.UsedB; | ||
|
||
public class Java { | ||
public static void main(String[] args) { | ||
System.out.println("hello"); | ||
UsedB.someMethod(); | ||
UsedA.someMethod(); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
testlib/src/test/resources/java/googlejavaformat/JavaCodeWithLicenseFormattedAOSP.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Some license stuff. | ||
* Very official. | ||
*/ | ||
|
||
import mylib.UsedA; | ||
import mylib.UsedB; | ||
|
||
public class Java { | ||
public static void main(String[] args) { | ||
System.out.println("hello"); | ||
UsedB.someMethod(); | ||
UsedA.someMethod(); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...lib/src/test/resources/java/googlejavaformat/JavaCodeWithLicensePackageFormattedAOSP.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package hello.world; | ||
|
||
import mylib.UsedA; | ||
import mylib.UsedB; | ||
|
||
public class Java { | ||
public static void main(String[] args) { | ||
System.out.println("hello"); | ||
UsedB.someMethod(); | ||
UsedA.someMethod(); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
testlib/src/test/resources/java/googlejavaformat/JavaCodeWithPackageFormattedAOSP.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package hello.world; | ||
|
||
import mylib.UsedA; | ||
import mylib.UsedB; | ||
|
||
public class Java { | ||
public static void main(String[] args) { | ||
System.out.println("hello"); | ||
UsedB.someMethod(); | ||
UsedA.someMethod(); | ||
} | ||
} |