Flag missing @Override as error in Error Prone
This commit is contained in:
parent
1a4fe92802
commit
78d8ddffbe
|
@ -55,6 +55,16 @@
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<compilerArgs>
|
||||||
|
<!-- TODO: do this only for generated-sources -->
|
||||||
|
<arg>-Xep:MissingOverride:WARN</arg>
|
||||||
|
</compilerArgs>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>javacc-maven-plugin</artifactId>
|
<artifactId>javacc-maven-plugin</artifactId>
|
||||||
|
|
1
pom.xml
1
pom.xml
|
@ -930,6 +930,7 @@
|
||||||
<forceJavacCompilerUse>true</forceJavacCompilerUse>
|
<forceJavacCompilerUse>true</forceJavacCompilerUse>
|
||||||
<compilerId>${javac-compiler-id}</compilerId>
|
<compilerId>${javac-compiler-id}</compilerId>
|
||||||
<compilerArgs>
|
<compilerArgs>
|
||||||
|
<arg>-Xep:MissingOverride:ERROR</arg>
|
||||||
<arg>-Xep:NonAtomicVolatileUpdate:ERROR</arg>
|
<arg>-Xep:NonAtomicVolatileUpdate:ERROR</arg>
|
||||||
<arg>-Xep:SynchronizeOnNonFinalField:ERROR</arg>
|
<arg>-Xep:SynchronizeOnNonFinalField:ERROR</arg>
|
||||||
<arg>-Xep:StaticAccessedFromInstance:ERROR</arg>
|
<arg>-Xep:StaticAccessedFromInstance:ERROR</arg>
|
||||||
|
|
Loading…
Reference in New Issue