Use java.util.Objects instead on internal API

Not needed since java.util.Objects implements all the needed
functionality.

Change-Id: I996cce37c44fc7325a1824bb51ccf8bee17364b0