HBASE-20153 Add error prone to precommit

Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9342e009
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9342e009
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9342e009

Branch: refs/heads/master
Commit: 9342e0091d665585c4afba00cc58a3cdf07e7ad2
Parents: 7749748
Author: Mike Drob <md...@apache.org>
Authored: Fri Mar 9 15:48:44 2018 -0600
Committer: Mike Drob <md...@apache.org>
Committed: Mon Mar 12 16:06:57 2018 -0500

----------------------------------------------------------------------
 dev-support/hbase-personality.sh | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9342e009/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index b2fc76e..b67777a 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -155,6 +155,10 @@ function personality_modules
     return
   fi
 
+  if [[ ${testtype} == compile ]]; then
+    extra="${extra} -PerrorProne"
+  fi
+
   # If EXCLUDE_TESTS_URL/INCLUDE_TESTS_URL is set, fetches the url
   # and sets -Dtest.exclude.pattern/-Dtest to exclude/include the
   # tests respectively.

Reply via email to