guava type migration: process wildcards for transformAndConcat() IDEA-148094

This commit is contained in:
Dmitry Batkovich
2015-12-09 18:42:36 +03:00
parent ef80474ef7
commit bb6a0cded7
@@ -188,10 +188,13 @@ public class FluentIterableConversionUtil {
PsiClass iterable,
PsiClass collection) {
if (retValue == null) return false;
final PsiType type = retValue.getType();
PsiType type = retValue.getType();
if (PsiType.NULL.equals(type)) {
return true;
}
if (type instanceof PsiCapturedWildcardType) {
type = ((PsiCapturedWildcardType)type).getUpperBound();
}
if (type instanceof PsiClassType) {
final PsiClass resolvedClass = ((PsiClassType)type).resolve();