void function ( ) { XYDrawableAnnotation loc0 = new XYDrawableAnnotation ( 10.0 , 20.0 , 100.0 , 200.0 , new TestDrawable ( ) ) ; XYDrawableAnnotation loc1 = new XYDrawableAnnotation ( 10.0 , 20.0 , 100.0 , 200.0 , new TestDrawable ( ) ) ; assertTrue ( loc0 . equals ( loc1 ) ) ; int loc2 = loc0 . hashCode ( ) ; int loc3 = loc1 . hashCode ( ) ; assertEquals ( loc2 , loc3 ) ; }
two objects that are equal are required to return the same hashcode . concode_field_sep PlaceHolder placeHolder concode_field_sep void testCloning concode_elem_sep boolean equals concode_elem_sep Object clone concode_elem_sep void testPublicCloneable concode_elem_sep void draw concode_elem_sep void testSerialization concode_elem_sep void testEquals