Enable more PMD rules.

Reviewed at https://reviews.apache.org/r/21951/