aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionValue.java
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2017-12-20 13:37:13 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-20 13:39:27 -0800
commitac2cd35438e13504336ced63b6a06581445b66a5 (patch)
treed0e61cc25908698618839c0dff681d3e0857bebe /src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionValue.java
parent8a56db3724333c4bf5f0d54e22ffa122c3078b4d (diff)
Get rid of LabelAndConfiguration class: ConfiguredTargetKey contains the same information and is more useful, since it's practically a SkyKey.
PiperOrigin-RevId: 179727105
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionValue.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionValue.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionValue.java
index 68e09f22de..b435720123 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionValue.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionValue.java
@@ -17,7 +17,6 @@ import com.google.auto.value.AutoValue;
import com.google.common.base.Function;
import com.google.common.collect.Iterables;
import com.google.devtools.build.lib.analysis.ConfiguredTarget;
-import com.google.devtools.build.lib.analysis.LabelAndConfiguration;
import com.google.devtools.build.lib.analysis.TopLevelArtifactContext;
import com.google.devtools.build.skyframe.LegacySkyKey;
import com.google.devtools.build.skyframe.SkyKey;
@@ -34,7 +33,7 @@ public class TestCompletionValue implements SkyValue {
private TestCompletionValue() { }
public static SkyKey key(
- LabelAndConfiguration lac,
+ ConfiguredTargetKey lac,
final TopLevelArtifactContext topLevelArtifactContext,
final boolean exclusiveTesting) {
return LegacySkyKey.create(
@@ -53,7 +52,7 @@ public class TestCompletionValue implements SkyValue {
return LegacySkyKey.create(
SkyFunctions.TEST_COMPLETION,
TestCompletionKey.create(
- LabelAndConfiguration.of(ct), topLevelArtifactContext, exclusiveTesting));
+ ConfiguredTargetKey.of(ct), topLevelArtifactContext, exclusiveTesting));
}
});
}
@@ -62,14 +61,15 @@ public class TestCompletionValue implements SkyValue {
abstract static class TestCompletionKey {
public static TestCompletionKey create(
- LabelAndConfiguration labelAndConfiguration,
+ ConfiguredTargetKey configuredTargetKey,
TopLevelArtifactContext topLevelArtifactContext,
boolean exclusiveTesting) {
return new AutoValue_TestCompletionValue_TestCompletionKey(
- labelAndConfiguration, topLevelArtifactContext, exclusiveTesting);
+ configuredTargetKey, topLevelArtifactContext, exclusiveTesting);
}
- public abstract LabelAndConfiguration labelAndConfiguration();
+ abstract ConfiguredTargetKey configuredTargetKey();
+
public abstract TopLevelArtifactContext topLevelArtifactContext();
public abstract boolean exclusiveTesting();
}