commit | 3d93b8f6d99854aeb26ae7fc624f245974704fe9 | [log] [tgz] |
---|---|---|
author | Philipp Wollermann <philwo@google.com> | Wed Oct 19 13:35:27 2016 +0000 |
committer | Philipp Wollermann <philwo@google.com> | Wed Oct 19 13:48:29 2016 +0000 |
tree | ce39cf6ea18743160c8530b403043abd8f6c6cb9 | |
parent | d628b8005aa8e6489e407f105466e7c3df478776 [diff] [blame] |
Fix Bazel-JDK7 breakage on CI src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactBuildTest.java:154: error: local variable normalOutput is accessed from within inner class; needs to be declared final touchFile(normalOutput); http://ci.bazel.io/job/bazel-tests/BAZEL_VERSION=HEAD-jdk7,PLATFORM_NAME=linux-x86_64/290/console -- MOS_MIGRATED_REVID=136588819
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactBuildTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactBuildTest.java index 5239f06..b2359d9 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactBuildTest.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactBuildTest.java
@@ -138,7 +138,7 @@ TouchingTestAction actionOne = new TouchingTestAction(outOneFileOne, outOneFileTwo); registerAction(actionOne); - Artifact normalOutput = createDerivedArtifact("normal/out"); + final Artifact normalOutput = createDerivedArtifact("normal/out"); Action testAction = new TestAction( TestAction.NO_EFFECT, ImmutableList.of(outOne), ImmutableList.of(normalOutput)) { @Override