Skip to content

Commit

Permalink
#1479 need to look at value, not key
Browse files Browse the repository at this point in the history
  • Loading branch information
elucash committed Aug 27, 2023
1 parent c643bef commit c98038e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
@@ -0,0 +1,22 @@
package org.immutables.fixture.generics;

import com.google.common.collect.Multimap;
import org.immutables.value.Value;

@Value.Enclosing
public interface MultimapSafeVarargs {
@Value.Immutable
interface ParamKey {
Multimap<Val<String>, String> vals();
}
@Value.Immutable
interface ParamVal {
Multimap<String, Val<String>> vals();
}
@Value.Immutable
interface ParamBoth {
Multimap<Val<String>, Val<String>> vals();
}

interface Val<T> {}
}
Expand Up @@ -993,7 +993,8 @@ public boolean hasTypeAnnotations() {
}

public boolean isNonRawElementType() {
return getElementType().indexOf('<') > 0;
List<String> args = typeParameters();
return !args.isEmpty() && args.get(args.size() - 1).indexOf('<') > 0;
}

public boolean isNonRawSecondaryElementType() {
Expand Down

0 comments on commit c98038e

Please sign in to comment.