diff options
author | 2016-07-13 18:03:55 +0000 | |
---|---|---|
committer | 2016-07-14 11:12:51 +0000 | |
commit | e9fa15d59aac9f72daea1af12ef4a6be420a3f8a (patch) | |
tree | 340a591fa7da3f28c8d93ea11de96a0aa45d2821 /src/main/java/com/google/devtools | |
parent | 4f119ac68b7d6f20ec8b7bc02dc715a1463d5d60 (diff) |
Discourage passing NestedSets to SpawnAction.Builder#addInputs
This is equivalent to the deprecation of NestedSetBuilder#addAll(NestedSet).
--
MOS_MIGRATED_REVID=127336417
Diffstat (limited to 'src/main/java/com/google/devtools')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java b/src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java index 8060eb0290..a458972bf3 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java @@ -681,6 +681,15 @@ public class SpawnAction extends AbstractAction implements ExecutionInfoSpecifie return this; } + /** @deprecated Use {@link #addTransitiveInputs} to avoid excessive memory use. */ + @Deprecated + public Builder addInputs(NestedSet<Artifact> artifacts) { + // Do not delete this method, or else addInputs(Iterable) calls with a NestedSet argument + // will not be flagged. + inputsBuilder.addAll((Iterable<Artifact>) artifacts); + return this; + } + /** * Adds transitive inputs to this action. */ |