Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Re-enable Null analysis in Maven (#3973)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
  • Loading branch information
triller-telekom authored and kaikreuzer committed Aug 7, 2017
1 parent ae23c69 commit 227fd60
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pom.xml
Expand Up @@ -50,6 +50,7 @@
<xtext-version>2.9.2</xtext-version>
<karaf.version>4.0.3</karaf.version>
<ds-annotations.version>1.2.8</ds-annotations.version>
<jdt-annotations.version>2.1.0</jdt-annotations.version>
<build.helper.maven.plugin.version>1.8</build.helper.maven.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Expand Down Expand Up @@ -156,10 +157,15 @@
<artifactId>org.apache.felix.scr.ds-annotations</artifactId>
<version>${ds-annotations.version}</version>
</extraClasspathElement>
<extraClasspathElement>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.annotation</artifactId>
<version>${jdt-annotations.version}</version>
</extraClasspathElement>
</extraClasspathElements>
<compilerArgs>
<arg>-err:-nullAnnot,-null,-syntacticAnalysis</arg>
<!--<arg>-warn:+null,+inheritNullAnnot,+nullUncheckedConversion,+nullAnnotRedundant</arg>-->
<arg>-err:+nullAnnot(org.eclipse.jdt.annotation.Nullable|org.eclipse.jdt.annotation.NonNull|org.eclipse.jdt.annotation.NonNullByDefault),+inheritNullAnnot</arg>
<arg>-warn:+null,+inheritNullAnnot,+nullAnnotConflict,+nullUncheckedConversion,+nullAnnotRedundant,+nullDereference</arg>
</compilerArgs>
</configuration>
</plugin>
Expand Down

0 comments on commit 227fd60

Please sign in to comment.