From: Wouter Born Date: Sun, 10 Jul 2022 13:13:31 +0000 (+0200) Subject: Hide compiler warnings for generated code (#13100) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=cd73b8d5797ee36ecd6cde41b0f09c8c0ac6047b;p=openhab-addons.git Hide compiler warnings for generated code (#13100) 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 --- diff --git a/pom.xml b/pom.xml index 2bf4f3c067..3e7cb0f6e1 100644 --- a/pom.xml +++ b/pom.xml @@ -302,6 +302,7 @@ Import-Package: \\ -err:+nullAnnot(org.eclipse.jdt.annotation.Nullable|org.eclipse.jdt.annotation.NonNull|org.eclipse.jdt.annotation.NonNullByDefault),+inheritNullAnnot,+nullAnnotConflict,-nullUncheckedConversion -warn:+null,+inheritNullAnnot,-nullUncheckedConversion,+nullAnnotRedundant,+nullDereference + -nowarn:[${project.build.directory}/generated-sources] true true