Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 2 | 0.956 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 104 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/AxisLocation.java |
2 | 25 | 84 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/CategoryLabelWidthType.java |
| |||||
/** * Returns a string representing the object. * * @return The string. */ public String toString() { return this.name; } /** * Returns <code>true</code> if this object is equal to the specified * object, and <code>false</code> otherwise. * * @param obj the other object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (this == obj) { return true; } if ( !(obj instanceof AxisLocation)) { return false; } AxisLocation location = (AxisLocation) obj; if ( !this.name.equals(location.toString())) { return false; } return true; } |
| |||||
/** * Returns a string representing the object. * * @return The string (never </code>null</code>). */ public String toString() { return this.name; } /** * Returns <code>true</code> if this object is equal to the specified * object, and <code>false</code> otherwise. * * @param obj the other object. * * @return A boolean. */ public boolean equals(Object obj) { if (this == obj) { return true; } if ( !(obj instanceof CategoryLabelWidthType)) { return false; } CategoryLabelWidthType t = (CategoryLabelWidthType) obj; if ( !this.name.equals(t.toString())) { return false; } return true; } |
| |||
/** * Returns a string representing the object. * * @return The string (never </code>null</code>). */ /** * Returns a string representing the object. * * @return The string. */ public String toString() { return this.name; } /** * Returns <code>true</code> if this object is equal to the specified * object, and <code>false</code> otherwise. * * @param obj the other object. * * @return A boolean. */ /** * Returns <code>true</code> if this object is equal to the specified * object, and <code>false</code> otherwise. * * @param obj the other object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (this == obj) { return true; } if ( !(obj instanceof [[#variable18ccfc80]])) { return false; } [[#variable18ccfc80]] [[#variable18ccfc20]]= ( [[#variable18ccfc80]]) obj; if ( !this.name.equals( [[#variable18ccfc20]].toString())) { return false; } return true; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18ccfc80]] | AxisLocation |
1 | 2 | [[#18ccfc80]] | CategoryLabelWidthType |
2 | 1 | [[#18ccfc20]] | location |
2 | 2 | [[#18ccfc20]] | t |