Esempio

public class ClassA {
public void hashCode (int key) {
}
}

Soluzione
Utilizzare sempre la firma standard per il metodo hashCode - public int hashCode().

public class ClassA {
public int hashCode () {
// ...;
}
}