Replace deprecated methods from Guava Objects

This change requires guava 18.0 or newer.