Skip to content

Commit

Permalink
chore: configure language level of javaparser to BLEEDING_EDGE
Browse files Browse the repository at this point in the history
This should avoid parsing errors/warnings of projects using java 21 or superior.
  • Loading branch information
murdos authored and kbuntrock committed Sep 1, 2024
1 parent 230d18c commit 3329691
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public JavadocParser(final List<File> filesToScan, final JavadocConfiguration ja
this.filesToScan = filesToScan;
final ParserConfiguration parserConfiguration = new ParserConfiguration();

parserConfiguration.setLanguageLevel(ParserConfiguration.LanguageLevel.JAVA_18);
parserConfiguration.setLanguageLevel(ParserConfiguration.LanguageLevel.BLEEDING_EDGE);

Charset charset = StandardCharsets.UTF_8;
if(Charset.isSupported(javadocConfiguration.getEncoding())) {
Expand Down

0 comments on commit 3329691

Please sign in to comment.