Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 2 | 0.951 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 98 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/entity/XYAnnotationEntity.java |
2 | 15 | 140 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ValueMarker.java |
| |||||
/** * Tests the entity 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 ( !super.equals(obj)) { return false; } if ( !(obj instanceof XYAnnotationEntity)) { return false; } XYAnnotationEntity that = (XYAnnotationEntity) obj; if (this.rendererIndex != that.rendererIndex) { return false; } return true; } |
| |||||
/** * Tests this marker for equality with an arbitrary object. This method * returns <code>true</code> if: * * <ul> * <li><code>obj</code> is not <code>null</code>;</li> * <li><code>obj</code> is an instance of <code>ValueMarker</code>;</li> * <li><code>obj</code> has the same value as this marker;</li> * <li><code>super.equals(obj)</code> returns <code>true</code>.</li> * </ul> * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this ) { return true; } if ( !super.equals(obj)) { return false; } if ( !(obj instanceof ValueMarker)) { return false; } ValueMarker that = (ValueMarker) obj; if (this.value != that.value) { return false; } return true; } |
| |||
/** * Tests the entity for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ /** * Tests this marker for equality with an arbitrary object. This method * returns <code>true</code> if: * * <ul> * <li><code>obj</code> is not <code>null</code>;</li> * <li><code>obj</code> is an instance of <code>ValueMarker</code>;</li> * <li><code>obj</code> has the same value as this marker;</li> * <li><code>super.equals(obj)</code> returns <code>true</code>.</li> * </ul> * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this ) { return true; } if ( !super.equals(obj)) { return false; } if ( !(obj instanceof [[#variable18d5bd00]])) { return false; } [[#variable18d5bd00]] that = ( [[#variable18d5bd00]]) obj; if (this. [[#variable18d5be00]]!= that. [[#variable18d5be00]]) { return false; } return true; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18d5bd00]] | XYAnnotationEntity |
1 | 2 | [[#18d5bd00]] | ValueMarker |
2 | 1 | [[#18d5be00]] | rendererIndex |
2 | 2 | [[#18d5be00]] | value |