Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.985 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 620 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMapper.java |
2 | 17 | 723 | 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); |
| ||||
// 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); |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b509a920]] | methodInfo |
1 | 2 | [[#b509a920]] | typeInfo |
2 | 1 | [[#b509a8e0]] | method |
2 | 2 | [[#b509a8e0]] | currentType |