CloneSet769


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15220.951method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11598
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/entity/XYAnnotationEntity.java
215140
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ValueMarker.java
Next
Last
Clone Instance
1
Line Count
15
Source Line
98
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/entity/XYAnnotationEntity.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;
}


First
Previous
Clone Instance
2
Line Count
15
Source Line
140
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ValueMarker.java

/**
 * 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;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d5bd00]]
XYAnnotationEntity 
12[[#18d5bd00]]
ValueMarker 
21[[#18d5be00]]
rendererIndex 
22[[#18d5be00]]
value