From 9006e7087bcefaecaf4c80489cb8c9e7a796d583 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 1 Mar 2022 13:43:50 +0100 Subject: Ensure nullness correctness using Checker Framework. Change-Id: Ie5a7749194313664a206e44597091a62afca9bdb --- jgvariant-parent/pom.xml | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'jgvariant-parent') diff --git a/jgvariant-parent/pom.xml b/jgvariant-parent/pom.xml index fe0c1ed..92b7e07 100644 --- a/jgvariant-parent/pom.xml +++ b/jgvariant-parent/pom.xml @@ -74,6 +74,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later 22.0.0 5.8.2 1.9 + 3.21.1 @@ -102,6 +103,18 @@ SPDX-License-Identifier: LGPL-3.0-or-later ${apiguardian.version} + + + org.checkerframework + checker + ${checker-framework.version} + + + org.checkerframework + checker-qual + ${checker-framework.version} + + org.tukaani @@ -131,6 +144,22 @@ SPDX-License-Identifier: LGPL-3.0-or-later + + + + org.checkerframework + checker + provided + true + + + org.checkerframework + checker-qual + provided + true + + + @@ -166,8 +195,9 @@ SPDX-License-Identifier: LGPL-3.0-or-later true -XDcompilePolicy=simple - -Xplugin:ErrorProne + -Xplugin:ErrorProne -Xep:InvalidParam:OFF -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED @@ -184,7 +214,15 @@ SPDX-License-Identifier: LGPL-3.0-or-later error_prone_core ${errorprone.version} + + org.checkerframework + checker + ${checker-framework.version} + + + org.checkerframework.checker.nullness.NullnessChecker + -- cgit v1.2.3