diff --git a/jdbcmapper/src/main/java/com/moparisthebest/jdbc/codegen/JdbcMapperProcessor.java b/jdbcmapper/src/main/java/com/moparisthebest/jdbc/codegen/JdbcMapperProcessor.java index 884f488..b0f321f 100644 --- a/jdbcmapper/src/main/java/com/moparisthebest/jdbc/codegen/JdbcMapperProcessor.java +++ b/jdbcmapper/src/main/java/com/moparisthebest/jdbc/codegen/JdbcMapperProcessor.java @@ -30,12 +30,6 @@ import static com.moparisthebest.jdbc.codegen.JdbcMapperFactory.SUFFIX; */ @SupportedAnnotationTypes("com.moparisthebest.jdbc.codegen.JdbcMapper.Mapper") @SupportedOptions({"jdbcMapper.databaseType", "jdbcMapper.arrayNumberTypeName", "jdbcMapper.arrayStringTypeName", "jdbcMapper.allowedMaxRowParamNames", "jdbcMapper.sqlCheckerClass"}) -//IFJAVA8_START -@SupportedSourceVersion(SourceVersion.RELEASE_8) -//IFJAVA8_END -/*IFJAVA6_START -@SupportedSourceVersion(SourceVersion.RELEASE_6) -IFJAVA6_END*/ public class JdbcMapperProcessor extends AbstractProcessor { public static final Pattern paramPattern = Pattern.compile("\\{(([^\\s]+)\\s+(([Nn][Oo][Tt]\\s+)?[Ii][Nn]\\s+))?([BbCc][Ll][Oo][Bb]\\s*:\\s*([^:}]+\\s*:\\s*)?)?([^}]+)\\}"); @@ -80,6 +74,11 @@ public class JdbcMapperProcessor extends AbstractProcessor { //out.println("JdbcMapperProcessor running!"); } + @Override + public SourceVersion getSupportedSourceVersion() { + return SourceVersion.latestSupported(); + } + @Override public synchronized void init(final ProcessingEnvironment processingEnv) { super.init(processingEnv);