Project: JDT
Bug 252331 [quick fix] Generate hashCode() and equals() should not be proposed if no non-static fields
Reported: 2008-10-28 07:17:07 | Status: resolved fixed

I20081027-1800. 1. enable the warning for missing hashCode() 2. paste: class C { public boolean equals(Object obj) { return true; } } ==> quick fix to generate hashCode() and equals() is proposed but I only get a dialog that this can't be done due to no non-static fields.

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java