CloneSet3175


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7220.970statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17239
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SelectionRequestor.java
27329
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SelectionRequestor.java
Clone Instance
1
Line Count
7
Source Line
239
Source File
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());
        }


Clone Instance
2
Line Count
7
Source Line
329
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SelectionRequestor.java

        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());
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a3f73c00]]
typeVariableBinding 
12[[#a3f73c00]]
fieldBinding 
21[[#ba6073a0]]
declaringElement 
22[[#ba6073a0]]
declaringClass