mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-22 07:18:51 -05:00
Fix java6 compilation
This commit is contained in:
parent
3bb274fa83
commit
b609747b50
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user