fix(HashMap): remove warnings

This removes warnings related to HashMap's API deprecation.