From 4e9fa1947c838882befd94f95233275e68be82f1 Mon Sep 17 00:00:00 2001 From: dslomov Date: Wed, 12 Jul 2017 14:59:07 +0200 Subject: Make native declared providers not implement TransitiveInfoCollection. (Almost) all native declared providers are accessed as such and not as native non-declared providers (inheritors of TransitiveInfoCollaction). There are still three providers that use TransitiveInfoCollection.WithLegacySkylarkName mechanism, I'll address them in the follow-up CL. RELNOTES: None. PiperOrigin-RevId: 161655315 --- src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java') diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java b/src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java index 3228825ce1..2a0a2142da 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java @@ -43,11 +43,10 @@ public final class IosDevice implements RuleConfiguredTargetFactory { String iosVersionAttribute = context.attributes().get(IosDeviceRule.IOS_VERSION_ATTR_NAME, STRING); XcodeVersionProperties xcodeVersionProperties = - (XcodeVersionProperties) context.getPrerequisite( IosDeviceRule.XCODE_ATTR_NAME, Mode.TARGET, - XcodeVersionProperties.SKYLARK_CONSTRUCTOR.getKey()); + XcodeVersionProperties.SKYLARK_CONSTRUCTOR); DottedVersion xcodeVersion = null; if (xcodeVersionProperties != null && xcodeVersionProperties.getXcodeVersion().isPresent()) { -- cgit v1.2.3