From 034cc5df94296cfbaaee761a5fd31712556e3d8b Mon Sep 17 00:00:00 2001 From: Christoph Knoedlseder Date: Tue, 8 Oct 2024 19:42:30 +0200 Subject: [PATCH] set language level to java 21 --- .../jsilbereisen/perfumator/engine/PerfumeDetectionEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/jsilbereisen/perfumator/engine/PerfumeDetectionEngine.java b/src/main/java/de/jsilbereisen/perfumator/engine/PerfumeDetectionEngine.java index cb84d53..8e6eba1 100644 --- a/src/main/java/de/jsilbereisen/perfumator/engine/PerfumeDetectionEngine.java +++ b/src/main/java/de/jsilbereisen/perfumator/engine/PerfumeDetectionEngine.java @@ -120,7 +120,7 @@ public static Builder builder(@NotNull Locale locale) { public static JavaParser getConfiguredJavaParser() { ParserConfiguration config = new ParserConfiguration(); - config.setLanguageLevel(ParserConfiguration.LanguageLevel.JAVA_17); + config.setLanguageLevel(ParserConfiguration.LanguageLevel.JAVA_21); config.setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolver(false))); config.setDoNotAssignCommentsPrecedingEmptyLines(false);