]> git.basschouten.com Git - openhab-addons.git/commitdiff
Hide compiler warnings for generated code (#13100)
authorWouter Born <github@maindrain.net>
Sun, 10 Jul 2022 13:13:31 +0000 (15:13 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Jul 2022 13:13:31 +0000 (15:13 +0200)
Generated Swagger/OpenAPI code can be messy resulting in a lot of compiler warnings obscuring more important compiler warnings.

Fixes #12498

Signed-off-by: Wouter Born <github@maindrain.net>
pom.xml

diff --git a/pom.xml b/pom.xml
index 2bf4f3c067d111f30f356c5cc5af8fa9538b6fdf..3e7cb0f6e1d86d006c683d09db55ce33ebfbab1a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -302,6 +302,7 @@ Import-Package: \\
             <compilerArgs>
               <arg>-err:+nullAnnot(org.eclipse.jdt.annotation.Nullable|org.eclipse.jdt.annotation.NonNull|org.eclipse.jdt.annotation.NonNullByDefault),+inheritNullAnnot,+nullAnnotConflict,-nullUncheckedConversion</arg>
               <arg>-warn:+null,+inheritNullAnnot,-nullUncheckedConversion,+nullAnnotRedundant,+nullDereference</arg>
+              <arg>-nowarn:[${project.build.directory}/generated-sources]</arg>
             </compilerArgs>
             <showWarnings>true</showWarnings>
             <showDeprecation>true</showDeprecation>