Browse Source

SimpleSQLChecker handles Stream in-lists

dependabot/maven/junit-junit-4.13.1
Travis Burtrum 3 years ago
parent
commit
73867bb011
  1. 6
      jdbcmapper/src/main/java/com/moparisthebest/jdbc/codegen/SimpleSQLChecker.java

6
jdbcmapper/src/main/java/com/moparisthebest/jdbc/codegen/SimpleSQLChecker.java

@ -110,7 +110,11 @@ public class SimpleSQLChecker implements SQLChecker { @@ -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 {

Loading…
Cancel
Save