Fixing crital issue: ""equals(Object obj)" and "hashCode()" should be
overridden in pairs"