|
Are there any annotations to help find invalid hashCode() and equals() meth: msg#00041java.findbugs.general
Hi, In my object model I have some fields that should always be referred to in equals() and hashCode() implementations and some that should never be referred to. It would be really helpful I could annotate these facts so that FindBugs can spot any mistakes as I or my team mates change fields without modifying equals()/hashCode() or vice versa. Assuming the annotations were standard or standardised then Eclipse (or whatever IDE) could even be taught to respect the annotations when generating the equals() and hashCode() implementations. Anybody heard of such annotations? or have an idea where else I should suggest the idea? Cheers, Rob
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: NPE with FindBugs 1.1.1, Bill Pugh |
|---|---|
| Next by Date: | Re: Are there any annotations to help find invalid hashCode() and equals() methods?, David Hovemeyer |
| Previous by Thread: | NPE with FindBugs 1.1.1, Sven Reimers |
| Next by Thread: | Re: Are there any annotations to help find invalid hashCode() and equals() methods?, David Hovemeyer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |