Ignore DepAnn Error Prone ERROR as WARN

DepAnn fail as ERROR for generated sources that implement deprecated methods,
but don't annotate with @Deprecated.

Also, see: http://errorprone.info/bugpattern/DepAnn


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/d99991dd
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/d99991dd
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/d99991dd

Branch: refs/heads/master
Commit: d99991dd3accb486cbbea926fcf1529670b4961b
Parents: 592f28f
Author: Thiago Kronig <caa_tkro...@uolinc.com>
Authored: Tue May 5 15:15:09 2015 -0300
Committer: Clebert Suconic <clebertsuco...@apache.org>
Committed: Thu May 21 19:45:01 2015 -0400

----------------------------------------------------------------------
 pom.xml | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d99991dd/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index af558b1..103ddba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -704,6 +704,10 @@
                <configuration>
                  <compilerId>javac-with-errorprone</compilerId>
                  <forceJavacCompilerUse>true</forceJavacCompilerUse>
+                 <compilerArgs>
+                   <!-- DepAnn fail for generated sources. Changing to WARN 
instead -->
+                   <arg>-Xep:DepAnn:WARN</arg>
+                 </compilerArgs>
                </configuration>
                <dependencies>
                  <dependency>

Reply via email to