KCINFR-874: adding a strict compiler, fixing errors found by compiler

This configures the Google's "error prone" java compiler into our build.  This is a strict compiler used by google.  It found a few errors which I fixed.  The plan is to setup a CI job to run this compiler periodically.