From 286fda7fabb190e90c3ea1308b9c7679b6bf343c Mon Sep 17 00:00:00 2001 From: Jack Green Date: Tue, 16 Apr 2024 11:32:17 +0100 Subject: [PATCH] Remove unnecessary `add-opens` compiler configurations When building, the following warning is logged for every module: ``` [INFO] --- compiler:3.11.0:compile (default-compile) @ data-locality --- [INFO] Changes detected - recompiling the module! :source [INFO] Compiling 4 source files with javac [debug release 17] to target/classes [WARNING] --add-opens has no effect at compile time ``` The `add-opens` workaround is [no longer required with newer versions of Lombok](https://github.com/projectlombok/lombok/issues/2681) anyway and so should instead be removed. --- pom.xml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pom.xml b/pom.xml index 588f03d4c..979f87f3b 100644 --- a/pom.xml +++ b/pom.xml @@ -107,19 +107,6 @@ ${java.version} ${project.build.sourceEncoding} - - - --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED -