Remove dependency on JDK7 Objects class.