4b0bbd839e
Perform this check using error-prone instead of checkstyle because the former can handle enum switches somewhat more intelligently.