Skip to content

Commit

Permalink
Support JDK 20 in annotation processors (#9022)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstepanov committed Mar 30, 2023
1 parent fff00e9 commit d6a6928
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -79,14 +79,14 @@ abstract class AbstractInjectAnnotationProcessor extends AbstractProcessor {
@Override
public SourceVersion getSupportedSourceVersion() {
SourceVersion sourceVersion = SourceVersion.latest();
if (sourceVersion.ordinal() <= 18) {
if (sourceVersion.ordinal() <= 20) {
if (sourceVersion.ordinal() >= 8) {
return sourceVersion;
} else {
return SourceVersion.RELEASE_8;
}
} else {
return (SourceVersion.values())[18];
return (SourceVersion.values())[20];
}
}

Expand Down

0 comments on commit d6a6928

Please sign in to comment.