aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac
diff options
context:
space:
mode:
authorGravatar Liam Miller-Cushon <cushon@google.com>2017-01-10 04:05:58 +0000
committerGravatar Marcel Hlopko <hlopko@google.com>2017-01-10 10:23:32 +0000
commitb603417c0ba3c048cf8ea8d5d2bae04518a5d820 (patch)
treee8e431ac1f5b6fc1152e9f8fccc719bdaa0a0097 /src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac
parent4878c69e18a09f5d798b8a56349c13624645845c (diff)
google-java-format buildjar
-- PiperOrigin-RevId: 144039394 MOS_MIGRATED_REVID=144039394
Diffstat (limited to 'src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac')
-rw-r--r--src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/TreePrunerTest.java28
1 files changed, 11 insertions, 17 deletions
diff --git a/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/TreePrunerTest.java b/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/TreePrunerTest.java
index 7acb9c959f..992ce70d7a 100644
--- a/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/TreePrunerTest.java
+++ b/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/TreePrunerTest.java
@@ -293,18 +293,12 @@ public class TreePrunerTest {
@Test
public void interfaceDeclaration() {
String[] lines = {
- "interface Intf {",
- " int CONST = 42;",
- " int NONCONST = new Integer(42);",
- "}",
+ "interface Intf {", " int CONST = 42;", " int NONCONST = new Integer(42);", "}",
};
JCCompilationUnit tree = parseLines(lines);
TreePruner.prune(context, tree);
String[] expected = {
- "interface Intf {",
- " int CONST = 42;",
- " int NONCONST;",
- "}",
+ "interface Intf {", " int CONST = 42;", " int NONCONST;", "}",
};
assertThat(prettyPrint(tree)).isEqualTo(Joiner.on('\n').join(expected));
}
@@ -327,15 +321,15 @@ public class TreePrunerTest {
JCCompilationUnit tree = parseLines(lines);
TreePruner.prune(context, tree);
String[] expected = {
- "class Test {",
- " ",
- " class Inner {",
- " ",
- " Inner(OuterInstance outer) {",
- " outer.super();",
- " }",
- " }",
- "}",
+ "class Test {",
+ " ",
+ " class Inner {",
+ " ",
+ " Inner(OuterInstance outer) {",
+ " outer.super();",
+ " }",
+ " }",
+ "}",
};
assertThat(prettyPrint(tree)).isEqualTo(Joiner.on('\n').join(expected));
}