SimpleSQLChecker handles Stream in-lists
This commit is contained in:
parent
27f26e6ef4
commit
73867bb011
|
@ -110,7 +110,11 @@ public class SimpleSQLChecker implements SQLChecker {
|
||||||
final TypeMirror componentType;
|
final TypeMirror componentType;
|
||||||
if (o.getKind() == TypeKind.ARRAY) {
|
if (o.getKind() == TypeKind.ARRAY) {
|
||||||
componentType = ((ArrayType) o).getComponentType();
|
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;
|
final DeclaredType dt = (DeclaredType) o;
|
||||||
componentType = dt.getTypeArguments().get(0);
|
componentType = dt.getTypeArguments().get(0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue