aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/ActionArtifactCycleReporter.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/ActionArtifactCycleReporter.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/ActionArtifactCycleReporter.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/ActionArtifactCycleReporter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ActionArtifactCycleReporter.java b/src/main/java/com/google/devtools/build/lib/skyframe/ActionArtifactCycleReporter.java
index 8808252848..8c49441f25 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/ActionArtifactCycleReporter.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/ActionArtifactCycleReporter.java
@@ -54,10 +54,10 @@ public class ActionArtifactCycleReporter extends AbstractLabelCycleReporter {
return "action from: " + arg;
} else if (arg instanceof TargetCompletionKey
&& skyFunctionName.equals(SkyFunctions.TARGET_COMPLETION)) {
- return "configured target: " + ((TargetCompletionKey) arg).labelAndConfiguration().getLabel();
+ return "configured target: " + ((TargetCompletionKey) arg).configuredTargetKey().getLabel();
} else if (arg instanceof TestCompletionKey
&& skyFunctionName.equals(SkyFunctions.TEST_COMPLETION)) {
- return "test target: " + ((TestCompletionKey) arg).labelAndConfiguration().getLabel();
+ return "test target: " + ((TestCompletionKey) arg).configuredTargetKey().getLabel();
}
throw new IllegalStateException(
"Argument is not Action, TargetCompletion, TestCompletion or OwnedArtifact: " + arg);
@@ -72,10 +72,10 @@ public class ActionArtifactCycleReporter extends AbstractLabelCycleReporter {
return ((ActionLookupData) arg).getLabelForErrors();
} else if (arg instanceof TargetCompletionKey
&& key.functionName().equals(SkyFunctions.TARGET_COMPLETION)) {
- return ((TargetCompletionKey) arg).labelAndConfiguration().getLabel();
+ return ((TargetCompletionKey) arg).configuredTargetKey().getLabel();
} else if (arg instanceof TestCompletionKey
&& key.functionName().equals(SkyFunctions.TEST_COMPLETION)) {
- return ((TestCompletionKey) arg).labelAndConfiguration().getLabel();
+ return ((TestCompletionKey) arg).configuredTargetKey().getLabel();
}
throw new IllegalStateException(
"Argument is not Action, TargetCompletion, TestCompletion or OwnedArtifact: " + arg);