Revert "Corrected declarations for MethodHash class."

This reverts commit 4eaa279699772ab9c6b8b3acee56300d4e7d76ad.