aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/packages/DelegatingAttributeMapper.java
diff options
context:
space:
mode:
authorGravatar Greg Estren <gregce@google.com>2017-02-14 21:30:29 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2017-02-15 10:04:56 +0000
commit564940d73ab135f2dd0573623b8934ed1cd7b9d1 (patch)
treeb886fabd6a057ef9c3d2e75fd2af6cfc9faf0f98 /src/main/java/com/google/devtools/build/lib/packages/DelegatingAttributeMapper.java
parentf98361fe0f7af3d549838f940e4af32b73888755 (diff)
Remove type checking requirement from AttributeMap.has.
This overrides the traditional has(String name, Type<>T> type) with has(String name) and removes the type check outright from isConfigurable. Ideally we'd remove the old version in this same change. But there are enough uses of it that that's not a risk-free change and is safer as followup changes. -- PiperOrigin-RevId: 147513593 MOS_MIGRATED_REVID=147513593
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/packages/DelegatingAttributeMapper.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/packages/DelegatingAttributeMapper.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/packages/DelegatingAttributeMapper.java b/src/main/java/com/google/devtools/build/lib/packages/DelegatingAttributeMapper.java
index e57476c551..3f0d2b0eef 100644
--- a/src/main/java/com/google/devtools/build/lib/packages/DelegatingAttributeMapper.java
+++ b/src/main/java/com/google/devtools/build/lib/packages/DelegatingAttributeMapper.java
@@ -46,8 +46,8 @@ public class DelegatingAttributeMapper implements AttributeMap {
}
@Override
- public <T> boolean isConfigurable(String attributeName, Type<T> type) {
- return delegate.isConfigurable(attributeName, type);
+ public boolean isConfigurable(String attributeName) {
+ return delegate.isConfigurable(attributeName);
}
@Override
@@ -98,7 +98,12 @@ public class DelegatingAttributeMapper implements AttributeMap {
}
@Override
- public boolean has(String attrName, Type<?> type) {
+ public boolean has(String attrName) {
+ return delegate.has(attrName);
+ }
+
+ @Override
+ public <T> boolean has(String attrName, Type<T> type) {
return delegate.has(attrName, type);
}
}