[HEADS UP] Possible problems with equals() and hashCode()

2004-02-20 Thread BAZLEY, Sebastian
I've been looking at equals/hashcode following some warnings from FindBugs, but not resolved the problems fully. Thought it would be useful to summarise what I've found so far: If a class over-rides equals(), it should also override hashCode(), otherwise it cannot be used reliably in Collections

Re: [HEADS UP] Possible problems with equals() and hashCode()

2004-02-20 Thread Jordi Salvat i Alabart
Yes, let's clean up! Have you tried removing those equals() methods? BAZLEY, Sebastian wrote: I've been looking at equals/hashcode following some warnings from FindBugs, but not resolved the problems fully. Thought it would be useful to summarise what I've found so far: If a class over-rides

RE: [HEADS UP] Possible problems with equals() and hashCode()

2004-02-20 Thread BAZLEY, Sebastian
() or similar() method that would not get used by Collections. S. -Original Message- From: Jordi Salvat i Alabart [mailto:[EMAIL PROTECTED] Sent: 20 February 2004 14:27 To: JMeter Developers List Subject: Re: [HEADS UP] Possible problems with equals() and hashCode() Yes, let's clean up! Have you

RE: [HEADS UP] Possible problems with equals() and hashCode()

2004-02-20 Thread BAZLEY, Sebastian
a sameAs() or similar() method that would not get used by Collections. S. -Original Message- From: Jordi Salvat i Alabart [mailto:[EMAIL PROTECTED] Sent: 20 February 2004 14:27 To: JMeter Developers List Subject: Re: [HEADS UP] Possible problems with equals() and hashCode() Yes, let's clean up