CloneSet344


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27220.963class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127161
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/ComparableObjectItem.java
227227
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYDataItem.java
Next
Last
Clone Instance
1
Line Count
27
Source Line
161
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/ComparableObjectItem.java

/**
 * Tests if this object is equal to another.
 *
 * @param obj  the object to test against for equality (<code>null</code>
 *             permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
  if (obj == this ) {
    return true;
  }
  if ( !(obj instanceof ComparableObjectItem)) {
    return false;
  }
  ComparableObjectItem that = (ComparableObjectItem) obj;
  if ( !this.x.equals(that.x)) {
    return false;
  }
  if ( !ObjectUtilities.equal(this.obj, that.obj)) {
    return false;
  }
  return true;
}

/**
 * Returns a hash code.
 * 
 * @return A hash code.
 */
public int hashCode() {
  int result;
  result = this.x.hashCode();
  result = 29 * result + (this.obj != null ? this.obj.hashCode(): 0);
  return result;
}


First
Previous
Clone Instance
2
Line Count
27
Source Line
227
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYDataItem.java

/**
 * Tests if this object is equal to another.
 *
 * @param obj  the object to test against for equality (<code>null</code>
 *             permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
  if (obj == this ) {
    return true;
  }
  if ( !(obj instanceof XYDataItem)) {
    return false;
  }
  XYDataItem that = (XYDataItem) obj;
  if ( !this.x.equals(that.x)) {
    return false;
  }
  if ( !ObjectUtilities.equal(this.y, that.y)) {
    return false;
  }
  return true;
}

/**
 * Returns a hash code.
 * 
 * @return A hash code.
 */
public int hashCode() {
  int result;
  result = this.x.hashCode();
  result = 29 * result + (this.y != null ? this.y.hashCode(): 0);
  return result;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Tests if this object is equal to another.
     *
     * @param obj  the object to test against for equality (<code>null</code>
     *             permitted).
     *
     * @return A boolean.
     */
public boolean equals(Object obj) {
  if (obj == this ) {
    return true;
  }
  if ( !(obj instanceof [[#variable1a932420]])) {
    return false;
  }
   [[#variable1a932420]] that = ( [[#variable1a932420]]) obj;
  if ( !this.x.equals(that.x)) {
    return false;
  }
  if ( !ObjectUtilities.equal(this. [[#variable1a932f20]], that. [[#variable1a932f20]])) {
    return false;
  }
  return true;
}

/**
     * Returns a hash code.
     * 
     * @return A hash code.
     */
public int hashCode() {
  int result;
  result = this.x.hashCode();
  result = 29 * result + (this. [[#variable1a932f20]]!= null ? this. [[#variable1a932f20]].hashCode(): 0);
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a932420]]
ComparableObjectItem 
12[[#1a932420]]
XYDataItem 
21[[#1a932f20]]
obj 
22[[#1a932f20]]
y