Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.964 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 788 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroDef.java |
2 | 7 | 803 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroDef.java |
| |||||
/** * Equality method for this definition * * @param other another definition * @param project the current project * @return true if the definitions are the same */ public boolean sameDefinition(AntTypeDefinition other, Project project) { if ( !super.sameDefinition(other, project)) { return false; } MyAntTypeDefinition otherDef = (MyAntTypeDefinition) other; return macroDef.sameDefinition(otherDef.macroDef); } |
| |||||
/** * Similar method for this definition * * @param other another definition * @param project the current project * @return true if the definitions are the same */ public boolean similarDefinition(AntTypeDefinition other, Project project) { if ( !super.similarDefinition(other, project)) { return false; } MyAntTypeDefinition otherDef = (MyAntTypeDefinition) other; return macroDef.similar(otherDef.macroDef); } |
| |||
/** * Similar method for this definition * * @param other another definition * @param project the current project * @return true if the definitions are the same */ /** * Equality method for this definition * * @param other another definition * @param project the current project * @return true if the definitions are the same */ public boolean [[#variable100f89c0]](AntTypeDefinition other, Project project) { if ( !super. [[#variable100f89c0]](other, project)) { return false; } MyAntTypeDefinition otherDef = (MyAntTypeDefinition) other; return macroDef. [[#variable100f89e0]](otherDef.macroDef); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#100f89c0]] | sameDefinition |
1 | 2 | [[#100f89c0]] | similarDefinition |
2 | 1 | [[#100f89e0]] | sameDefinition |
2 | 2 | [[#100f89e0]] | similar |