Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 2 | 0.958 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 460 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java |
2 | 2 | 806 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java |
| ||||
SuperMethodInvocation invoc = fAst.newSuperMethodInvocation(); invoc.setName(fAst.newSimpleName(METHODNAME_HASH_CODE)); |
| ||||
// if (!super.equals(obj)) return false; SuperMethodInvocation superEqualsCall = fAst.newSuperMethodInvocation(); superEqualsCall.setName(fAst.newSimpleName(METHODNAME_EQUALS)); |
| |||
// if (!super.equals(obj)) return false; SuperMethodInvocation [[#variablebb527800]]= fAst.newSuperMethodInvocation(); [[#variablebb527800]].setName(fAst.newSimpleName( [[#variablebb5277a0]])); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb527800]] | invoc |
1 | 2 | [[#bb527800]] | superEqualsCall |
2 | 1 | [[#bb5277a0]] | METHODNAME_HASH_CODE |
2 | 2 | [[#bb5277a0]] | METHODNAME_EQUALS |