HBASE-11912 Catch some bad practices at compile time with error-prone