CloneSet1194


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.985statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117620
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMapper.java
217723
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMapper.java
Clone Instance
1
Line Count
17
Source Line
620
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMapper.java

                // type parameters
                if (typeInfo.typeParameters != null) {
                        for (int i = 0, length = typeInfo.typeParameters.length; i < length; i++) {
                                TypeParameterInfo typeParameterInfo = typeInfo.typeParameters[i];
                                ITypeParameter typeParameter = currentType.getTypeParameter(new String(typeParameterInfo.name));
                                setSourceRange(
                                        typeParameter, 
                                        new SourceRange(
                                                typeParameterInfo.declarationStart, 
                                                typeParameterInfo.declarationEnd - typeParameterInfo.declarationStart + 1), 
                                        new SourceRange(
                                                typeParameterInfo.nameSourceStart, 
                                                typeParameterInfo.nameSourceEnd - typeParameterInfo.nameSourceStart + 1));
                        }
                }

                // categories
                addCategories(currentType, typeInfo.categories);


Clone Instance
2
Line Count
17
Source Line
723
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMapper.java

                        // type parameters
                        if (methodInfo.typeParameters != null) {
                                for (int i = 0, length = methodInfo.typeParameters.length; i < length; i++) {
                                        TypeParameterInfo typeParameterInfo = methodInfo.typeParameters[i];
                                        ITypeParameter typeParameter = method.getTypeParameter(new String(typeParameterInfo.name));
                                        setSourceRange(
                                                typeParameter, 
                                                new SourceRange(
                                                        typeParameterInfo.declarationStart, 
                                                        typeParameterInfo.declarationEnd - typeParameterInfo.declarationStart + 1), 
                                                new SourceRange(
                                                        typeParameterInfo.nameSourceStart, 
                                                        typeParameterInfo.nameSourceEnd - typeParameterInfo.nameSourceStart + 1));
                                }
                        }

                        // categories
                        addCategories(method, methodInfo.categories);


Clone AbstractionParameter Count: 2Parameter Bindings

// type parameters
if ( [[#variableb509a920]].typeParameters != null) {
  for (int i = 0, length = [[#variableb509a920]].typeParameters.length; i < length; i++) {
    TypeParameterInfo typeParameterInfo = [[#variableb509a920]].typeParameters[i];
    ITypeParameter typeParameter = [[#variableb509a8e0]].getTypeParameter(new String(typeParameterInfo.name));
    setSourceRange(typeParameter, new SourceRange(typeParameterInfo.declarationStart, typeParameterInfo.declarationEnd - typeParameterInfo.declarationStart + 1), new SourceRange(typeParameterInfo.nameSourceStart, typeParameterInfo.nameSourceEnd - typeParameterInfo.nameSourceStart + 1));
  }
}
// categories
addCategories( [[#variableb509a8e0]],  [[#variableb509a920]].categories);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b509a920]]
methodInfo 
12[[#b509a920]]
typeInfo 
21[[#b509a8e0]]
method 
22[[#b509a8e0]]
currentType