SimpleSQLChecker handles Stream in-lists

This commit is contained in:
Travis Burtrum 2019-07-12 17:22:38 -04:00
parent 27f26e6ef4
commit 73867bb011
1 changed files with 5 additions and 1 deletions

View File

@ -110,7 +110,11 @@ public class SimpleSQLChecker implements SQLChecker {
final TypeMirror componentType;
if (o.getKind() == TypeKind.ARRAY) {
componentType = ((ArrayType) o).getComponentType();
} else if (o.getKind() == TypeKind.DECLARED && types.isAssignable(o, collectionType)) {
} else if (o.getKind() == TypeKind.DECLARED && (types.isAssignable(o, collectionType)
//IFJAVA8_START
|| types.isAssignable(o, streamType)
//IFJAVA8_END
)) {
final DeclaredType dt = (DeclaredType) o;
componentType = dt.getTypeArguments().get(0);
} else {