| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 11 | 2 | 6 | 0.953 | switch_group |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 11 | 194 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BindingComparator.java |
| 2 | 11 | 245 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BindingComparator.java |
| ||||
case Binding.PARAMETERIZED_TYPE:
if ( !typeBinding2.isParameterizedType()) {
return false;
}
ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) typeBinding;
ParameterizedTypeBinding parameterizedTypeBinding2 = (ParameterizedTypeBinding) typeBinding2;
return CharOperation.equals(parameterizedTypeBinding.compoundName, parameterizedTypeBinding2.compoundName) &&
(parameterizedTypeBinding.modifiers& (ExtraCompilerModifiers.AccJustFlag| ClassFileConstants.AccInterface| ClassFileConstants.AccEnum| ClassFileConstants.AccAnnotation)) ==
(parameterizedTypeBinding2.modifiers& (ExtraCompilerModifiers.AccJustFlag| ClassFileConstants.AccInterface| ClassFileConstants.AccEnum| ClassFileConstants.AccAnnotation)) &&
isEqual(parameterizedTypeBinding.arguments, parameterizedTypeBinding2.arguments, visitedTypes) &&
isEqual(parameterizedTypeBinding.enclosingType(), parameterizedTypeBinding2.enclosingType(), visitedTypes);
|
| ||||
case Binding.GENERIC_TYPE:
if ( !typeBinding2.isGenericType()) {
return false;
}
ReferenceBinding referenceBinding = (ReferenceBinding) typeBinding;
ReferenceBinding referenceBinding2 = (ReferenceBinding) typeBinding2;
return CharOperation.equals(referenceBinding.compoundName, referenceBinding2.compoundName) &&
(referenceBinding.modifiers& (ExtraCompilerModifiers.AccJustFlag| ClassFileConstants.AccInterface| ClassFileConstants.AccEnum| ClassFileConstants.AccAnnotation)) ==
(referenceBinding2.modifiers& (ExtraCompilerModifiers.AccJustFlag| ClassFileConstants.AccInterface| ClassFileConstants.AccEnum| ClassFileConstants.AccAnnotation)) &&
isEqual(referenceBinding.typeVariables(), referenceBinding2.typeVariables(), visitedTypes) &&
isEqual(referenceBinding.enclosingType(), referenceBinding2.enclosingType(), visitedTypes);
|
| |||
case Binding. [[#variableb95cc2e0]]:
if ( !typeBinding2. [[#variableb95cc220]]()) {
return false;
}
[[#variableb95cc1c0]] [[#variableb95cc160]]= ( [[#variableb95cc1c0]]) typeBinding;
[[#variableb95cc1c0]] [[#variableb95cc100]]= ( [[#variableb95cc1c0]]) typeBinding2;
return CharOperation.equals( [[#variableb95cc160]].compoundName, [[#variableb95cc100]].compoundName) && ( [[#variableb95cc160]].modifiers&(ExtraCompilerModifiers.AccJustFlag|ClassFileConstants.AccInterface|ClassFileConstants.AccEnum|ClassFileConstants.AccAnnotation)) == ( [[#variableb95cc100]].modifiers&(ExtraCompilerModifiers.AccJustFlag|ClassFileConstants.AccInterface|ClassFileConstants.AccEnum|ClassFileConstants.AccAnnotation)) && isEqual( [[#variableb95cc160]] [[#variableb95cc040]], [[#variableb95cc100]] [[#variableb95cc040]], visitedTypes) && isEqual( [[#variableb95cc160]].enclosingType(), [[#variableb95cc100]].enclosingType(), visitedTypes);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b95cc2e0]] | PARAMETERIZED_TYPE |
| 1 | 2 | [[#b95cc2e0]] | GENERIC_TYPE |
| 2 | 1 | [[#b95cc220]] | isParameterizedType |
| 2 | 2 | [[#b95cc220]] | isGenericType |
| 3 | 1 | [[#b95cc1c0]] | ParameterizedTypeBinding |
| 3 | 2 | [[#b95cc1c0]] | ReferenceBinding |
| 4 | 1 | [[#b95cc160]] | parameterizedTypeBinding |
| 4 | 2 | [[#b95cc160]] | referenceBinding |
| 5 | 1 | [[#b95cc100]] | parameterizedTypeBinding2 |
| 5 | 2 | [[#b95cc100]] | referenceBinding2 |
| 6 | 1 | [[#b95cc040]] | .arguments |
| 6 | 2 | [[#b95cc040]] | .typeVariables() |