aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis/actions
diff options
context:
space:
mode:
authorGravatar asteinb <asteinb@google.com>2018-04-02 11:39:48 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-02 11:41:03 -0700
commit7efeb1bd273a44ebe3c909e9d05157ceed2765e8 (patch)
tree061cc889500c51ecb9b15259d56aa5ad45259eaa /src/main/java/com/google/devtools/build/lib/analysis/actions
parentfe7bb5ea10adae6a5b61681fc48927bb365c8a24 (diff)
Automated rollback of commit 9bfbefc13f2b6ae9a86fd46a8470e3b4cd8efd1a.
*** Reason for rollback *** Roll forward with fix and test - turns out I didn't distinguish properly between list and item seperators. *** Original change description *** Rollback "Allow Merge action to take an interface as primary, not just ResourceContainer", as it breaks some android rule integration tests. RELNOTES: none PiperOrigin-RevId: 191322706
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/actions')
-rw-r--r--src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java b/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java
index f23146b3e1..1fa50a6628 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java
@@ -208,7 +208,7 @@ public final class CustomCommandLine extends CommandLine {
}
/** Each argument is mapped using the supplied map function */
- public MappedVectorArg<T> mapped(CommandLineItem.MapFn<T> mapFn) {
+ public MappedVectorArg<T> mapped(CommandLineItem.MapFn<? super T> mapFn) {
return new MappedVectorArg<>(this, mapFn);
}
}
@@ -216,9 +216,9 @@ public final class CustomCommandLine extends CommandLine {
/** A vector arg that maps some type T to strings. */
static class MappedVectorArg<T> extends VectorArg<String> {
private final Iterable<T> values;
- private final CommandLineItem.MapFn<T> mapFn;
+ private final CommandLineItem.MapFn<? super T> mapFn;
- private MappedVectorArg(SimpleVectorArg<T> other, CommandLineItem.MapFn<T> mapFn) {
+ private MappedVectorArg(SimpleVectorArg<T> other, CommandLineItem.MapFn<? super T> mapFn) {
super(
other.isNestedSet,
other.isEmpty,