From 3329691e6c0f8b00033e1e8b4dddf460ce0cbc47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Mino?= Date: Sun, 1 Sep 2024 00:05:26 +0200 Subject: [PATCH] chore: configure language level of javaparser to BLEEDING_EDGE This should avoid parsing errors/warnings of projects using java 21 or superior. --- .../main/java/io/github/kbuntrock/javadoc/JavadocParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi-maven-plugin/src/main/java/io/github/kbuntrock/javadoc/JavadocParser.java b/openapi-maven-plugin/src/main/java/io/github/kbuntrock/javadoc/JavadocParser.java index 68edcf47..55b24a1d 100644 --- a/openapi-maven-plugin/src/main/java/io/github/kbuntrock/javadoc/JavadocParser.java +++ b/openapi-maven-plugin/src/main/java/io/github/kbuntrock/javadoc/JavadocParser.java @@ -48,7 +48,7 @@ public JavadocParser(final List 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())) {