Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 1 | 0.971 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 115 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/Vector.java |
2 | 15 | 102 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYCoordinate.java |
| |||||
/** * Tests this vector for equality with an arbitrary object. * * @param obj the object (<code>null</code> not permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this ) { return true; } if ( !(obj instanceof Vector)) { return false; } Vector that = (Vector) obj; if (this.x != that.x) { return false; } if (this.y != that.y) { return false; } return true; } |
| |||||
/** * Tests this coordinate for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this ) { return true; } if ( !(obj instanceof XYCoordinate)) { return false; } XYCoordinate that = (XYCoordinate) obj; if (this.x != that.x) { return false; } if (this.y != that.y) { return false; } return true; } |
| |||
/** * Tests this vector for equality with an arbitrary object. * * @param obj the object (<code>null</code> not permitted). * * @return A boolean. */ /** * Tests this coordinate for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this ) { return true; } if ( !(obj instanceof [[#variable18d51ca0]])) { return false; } [[#variable18d51ca0]] that = ( [[#variable18d51ca0]]) obj; if (this.x != that.x) { return false; } if (this.y != that.y) { return false; } return true; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18d51ca0]] | Vector |
1 | 2 | [[#18d51ca0]] | XYCoordinate |