Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 1 | 0.963 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 103 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/xy/junit/VectorTests.java |
2 | 7 | 103 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/xy/junit/XYCoordinateTests.java |
| |||||
/** * Two objects that are equal are required to return the same hashCode. */ public void testHashcode() { Vector v1 = new Vector(1.0, 2.0); Vector v2 = new Vector(1.0, 2.0); assertTrue(v1.equals(v2)); int h1 = v1.hashCode(); int h2 = v2.hashCode(); assertEquals(h1, h2); } |
| |||||
/** * Two objects that are equal are required to return the same hashCode. */ public void testHashcode() { XYCoordinate v1 = new XYCoordinate(1.0, 2.0); XYCoordinate v2 = new XYCoordinate(1.0, 2.0); assertTrue(v1.equals(v2)); int h1 = v1.hashCode(); int h2 = v2.hashCode(); assertEquals(h1, h2); } |
| |||
/** * Two objects that are equal are required to return the same hashCode. */ public void testHashcode() { [[#variable18d21740]] v1 = new [[#variable18d21740]](1.0, 2.0); [[#variable18d21740]] v2 = new [[#variable18d21740]](1.0, 2.0); assertTrue(v1.equals(v2)); int h1 = v1.hashCode(); int h2 = v2.hashCode(); assertEquals(h1, h2); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18d21740]] | Vector |
1 | 2 | [[#18d21740]] | XYCoordinate |