diff options
author | 2018-02-28 12:16:38 -0800 | |
---|---|---|
committer | 2018-02-28 12:18:44 -0800 | |
commit | e70aafe68eebfd4f7dedf3cccd19deae72d29db6 (patch) | |
tree | 7dd211075236b3c06b34b0517852bdd624d8a87d /src/main/java/com/google/devtools/build/lib/rules/objc/AppleExecutableBinaryInfo.java | |
parent | 77c4f30b333106ff15de5b5dd42076db01fd22b4 (diff) |
Deprecate and remove several uses of the 'values' map in NativeInfo subclasses.
These subclasses should be using @SkylarkCallable(structField = true) instead
This is a bit of a memory win, as there is now no need to store field information twice.
There are still a couple of stragglers that are more difficult, namely ToolchainInfo and DefaultInfo. Their APIs will likely need some more extensive revamping before proceeding.
RELNOTES: None.
PiperOrigin-RevId: 187364392
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/AppleExecutableBinaryInfo.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/AppleExecutableBinaryInfo.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/AppleExecutableBinaryInfo.java b/src/main/java/com/google/devtools/build/lib/rules/objc/AppleExecutableBinaryInfo.java index 134d89a70a..374d9bedaf 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/AppleExecutableBinaryInfo.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/AppleExecutableBinaryInfo.java @@ -14,7 +14,6 @@ package com.google.devtools.build.lib.rules.objc; -import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; import com.google.devtools.build.lib.packages.NativeInfo; @@ -60,7 +59,7 @@ public final class AppleExecutableBinaryInfo extends NativeInfo { */ public AppleExecutableBinaryInfo(Artifact appleExecutableBinary, ObjcProvider depsObjcProvider) { - super(SKYLARK_CONSTRUCTOR, ImmutableMap.<String, Object>of()); + super(SKYLARK_CONSTRUCTOR); this.appleExecutableBinary = appleExecutableBinary; this.depsObjcProvider = depsObjcProvider; } |