Use java.util.Objects replacements for guava helpers.

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