Fix java6 compilation

This commit is contained in:
Travis Burtrum 2018-05-22 00:26:09 -04:00
parent 3bb274fa83
commit b609747b50

View File

@ -393,6 +393,7 @@ public class JdbcMapperProcessor extends AbstractProcessor {
inListBindParam = new SpecialVariableElement(bindParam, inListBindParam = new SpecialVariableElement(bindParam,
databaseType == JdbcMapper.DatabaseType.BIND ? SpecialVariableElement.SpecialType.BIND_IN_LIST : SpecialVariableElement.SpecialType.IN_LIST, databaseType == JdbcMapper.DatabaseType.BIND ? SpecialVariableElement.SpecialType.BIND_IN_LIST : SpecialVariableElement.SpecialType.IN_LIST,
++inListBindParamsIdx); ++inListBindParamsIdx);
//IFJAVA8_START
if(databaseType == JdbcMapper.DatabaseType.BIND) { if(databaseType == JdbcMapper.DatabaseType.BIND) {
final TypeMirror o = bindParam.asType(); final TypeMirror o = bindParam.asType();
if(o.getKind() == TypeKind.DECLARED && types.isAssignable(o, streamType)) { if(o.getKind() == TypeKind.DECLARED && types.isAssignable(o, streamType)) {
@ -400,6 +401,7 @@ public class JdbcMapperProcessor extends AbstractProcessor {
inListBindParam.setName("_" + inListBindParam.getSimpleName() + "StreamAsBindArray"); inListBindParam.setName("_" + inListBindParam.getSimpleName() + "StreamAsBindArray");
} }
} }
//IFJAVA8_END
inListBindParams.put(paramName, inListBindParam); inListBindParams.put(paramName, inListBindParam);
} }
bindParams.add(inListBindParam); bindParams.add(inListBindParam);