aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/syntax/SyntaxTreeVisitorTest.java
diff options
context:
space:
mode:
authorGravatar Laurent Le Brun <laurentlb@google.com>2016-08-04 10:22:16 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-08-04 10:35:48 +0000
commit8c8857d21cd9a69d9c24155a7f36d4c74c27ce56 (patch)
treea463b92f221cdf2c02c90841701772a6e4b017d8 /src/test/java/com/google/devtools/build/lib/syntax/SyntaxTreeVisitorTest.java
parent43e22c4e466c39234979e90e7897bdc63607fc06 (diff)
Remove static checks from the parser.
-- MOS_MIGRATED_REVID=129313959
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/SyntaxTreeVisitorTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/syntax/SyntaxTreeVisitorTest.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/SyntaxTreeVisitorTest.java b/src/test/java/com/google/devtools/build/lib/syntax/SyntaxTreeVisitorTest.java
index 40bb7e58c1..a17cf63097 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/SyntaxTreeVisitorTest.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/SyntaxTreeVisitorTest.java
@@ -17,14 +17,12 @@ import static com.google.common.truth.Truth.assertThat;
import com.google.devtools.build.lib.testutil.Scratch;
import com.google.devtools.build.lib.vfs.Path;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.JUnit4;
-
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
/** Tests for @{code SyntaxTreeVisitor} */
@@ -36,7 +34,7 @@ public class SyntaxTreeVisitorTest {
/** Parses the contents of the specified string and returns the AST. */
private BuildFileAST parse(String... lines) throws IOException {
Path file = scratch.file("/a/build/file/BUILD", lines);
- return BuildFileAST.parseSkylarkFile(file, null /* reporter */, null /*validationEnvironment*/);
+ return BuildFileAST.parseSkylarkFile(file, null /* reporter */);
}
@Test