From: <no...@at...> - 2006-04-06 22:34:27
|
Bad code in FastClass.equals ---------------------------- Key: HHH-1646 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH= -1646 Project: Hibernate3 Type: Bug Versions: 3.1.3, 3.2.0 cr1 =20 Environment: 3.2.0 Reporter: Niels Harremo=C3=ABs Priority: Trivial In FastClass, the equals method is: public boolean equals(Object o) { if ( o =3D=3D null || ( o instanceof FastClass ) ) { return false; } return this.type.equals( ( ( FastClass ) o ).type ); } There's a missing ! - the first line should be=20 if ( o =3D=3D null || ! ( o instanceof FastClass ) ) { --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |