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.970 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 239 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SelectionRequestor.java |
2 | 7 | 329 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SelectionRequestor.java |
| ||||
IJavaElement res; if (fieldBinding.declaringClass instanceof ParameterizedTypeBinding) { LocalTypeBinding localTypeBinding = (LocalTypeBinding) ((ParameterizedTypeBinding) fieldBinding.declaringClass).type; res = findLocalElement(localTypeBinding.sourceStart()); } else { SourceTypeBinding typeBinding = (SourceTypeBinding) fieldBinding.declaringClass; res = findLocalElement(typeBinding.sourceStart()); } |
| ||||
IJavaElement res; if (typeVariableBinding.declaringElement instanceof ParameterizedTypeBinding) { LocalTypeBinding localTypeBinding = (LocalTypeBinding) ((ParameterizedTypeBinding) typeVariableBinding.declaringElement).type; res = findLocalElement(localTypeBinding.sourceStart()); } else { SourceTypeBinding typeBinding = (SourceTypeBinding) typeVariableBinding.declaringElement; res = findLocalElement(typeBinding.sourceStart()); } |
| |||
IJavaElement res; if ( [[#variablea3f73c00]]. [[#variableba6073a0]]instanceof ParameterizedTypeBinding) { LocalTypeBinding localTypeBinding = (LocalTypeBinding) ((ParameterizedTypeBinding) [[#variablea3f73c00]]. [[#variableba6073a0]]).type; res = findLocalElement(localTypeBinding.sourceStart()); } else { SourceTypeBinding typeBinding = (SourceTypeBinding) [[#variablea3f73c00]]. [[#variableba6073a0]]; res = findLocalElement(typeBinding.sourceStart()); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a3f73c00]] | typeVariableBinding |
1 | 2 | [[#a3f73c00]] | fieldBinding |
2 | 1 | [[#ba6073a0]] | declaringElement |
2 | 2 | [[#ba6073a0]] | declaringClass |