java: Fix findbugs errors on generated code.

R=ppi@chromium.org

Review URL: https://codereview.chromium.org/692823003