aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/packages/AbstractAttributeMapper.java
diff options
context:
space:
mode:
authorGravatar Michajlo Matijkiw <michajlo@google.com>2016-09-21 15:02:36 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2016-09-22 09:51:44 +0000
commit35a1f8be335715e28441d340e147a8ed2821e397 (patch)
tree3fff7f4f9d2cf61cb9451b55630ec98ec43c2766 /src/main/java/com/google/devtools/build/lib/packages/AbstractAttributeMapper.java
parentc620e6beb61528d9c43ef15a8266452c81fbeeb2 (diff)
Be honest about type in Type#visitLabels
We avoided referencing Label directly, but as the code evolved it became inevitable. Also fix a typo I introduced earlier. -- MOS_MIGRATED_REVID=133831955
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/packages/AbstractAttributeMapper.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/packages/AbstractAttributeMapper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/packages/AbstractAttributeMapper.java b/src/main/java/com/google/devtools/build/lib/packages/AbstractAttributeMapper.java
index 4f67d959e0..a7b55b22db 100644
--- a/src/main/java/com/google/devtools/build/lib/packages/AbstractAttributeMapper.java
+++ b/src/main/java/com/google/devtools/build/lib/packages/AbstractAttributeMapper.java
@@ -155,9 +155,9 @@ public abstract class AbstractAttributeMapper implements AttributeMap {
if (value != null) { // null values are particularly possible for computed defaults.
type.visitLabels(new Type.LabelVisitor() {
@Override
- public void visit(@Nullable Object object) throws InterruptedException {
- if (object != null) {
- Label absoluteLabel = ruleLabel.resolveRepositoryRelative((Label) object);
+ public void visit(@Nullable Label label) throws InterruptedException {
+ if (label != null) {
+ Label absoluteLabel = ruleLabel.resolveRepositoryRelative(label);
observer.acceptLabelAttribute(absoluteLabel, attribute);
}
}