aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis/platform/ConstraintSettingInfo.java
diff options
context:
space:
mode:
authorGravatar cparsons <cparsons@google.com>2018-02-28 12:16:38 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-28 12:18:44 -0800
commite70aafe68eebfd4f7dedf3cccd19deae72d29db6 (patch)
tree7dd211075236b3c06b34b0517852bdd624d8a87d /src/main/java/com/google/devtools/build/lib/analysis/platform/ConstraintSettingInfo.java
parent77c4f30b333106ff15de5b5dd42076db01fd22b4 (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/analysis/platform/ConstraintSettingInfo.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/analysis/platform/ConstraintSettingInfo.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/platform/ConstraintSettingInfo.java b/src/main/java/com/google/devtools/build/lib/analysis/platform/ConstraintSettingInfo.java
index 4b3f2f44f7..c2661ad986 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/platform/ConstraintSettingInfo.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/platform/ConstraintSettingInfo.java
@@ -15,7 +15,6 @@
package com.google.devtools.build.lib.analysis.platform;
import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
import com.google.devtools.build.lib.cmdline.Label;
import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable;
import com.google.devtools.build.lib.events.Location;
@@ -75,7 +74,7 @@ public class ConstraintSettingInfo extends NativeInfo {
@VisibleForSerialization
ConstraintSettingInfo(Label label, Location location) {
- super(PROVIDER, ImmutableMap.<String, Object>of("label", label), location);
+ super(PROVIDER, location);
this.label = label;
}