Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 1 | 0.966 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 353 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYIntervalSeriesCollection.java |
2 | 18 | 379 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYSeriesCollection.java |
| |||||
/** * Tests this instance 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 XYIntervalSeriesCollection)) { return false; } XYIntervalSeriesCollection that = (XYIntervalSeriesCollection) obj; return ObjectUtilities.equal(this.data, that.data); } |
| |||||
/** * Tests this collection for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { /* * XXX * * what about the interval delegate...? * The interval width etc wasn't considered * before, hence i did not add it here (AS) * */ if (obj == this ) { return true; } if ( !(obj instanceof XYSeriesCollection)) { return false; } XYSeriesCollection that = (XYSeriesCollection) obj; return ObjectUtilities.equal(this.data, that.data); } |
| |||
/** * Tests this collection for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ /** * Tests this instance for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { /* * XXX * * what about the interval delegate...? * The interval width etc wasn't considered * before, hence i did not add it here (AS) * */ if (obj == this ) { return true; } if ( !(obj instanceof [[#variable18e03440]])) { return false; } [[#variable18e03440]] that = ( [[#variable18e03440]]) obj; return ObjectUtilities.equal(this.data, that.data); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18e03440]] | XYIntervalSeriesCollection |
1 | 2 | [[#18e03440]] | XYSeriesCollection |