Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.960 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 535 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchPattern.java |
2 | 14 | 926 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchPattern.java |
| ||||
if (lastDotPosition >= 0) { typeQualification = CharOperation.subarray(typePart, 0, lastDotPosition); if (typeQualification.length == 1 && typeQualification[0] == '*') { typeQualification = null; } else { // prefix with a '*' as the full qualification could be bigger (because of an import) typeQualification = CharOperation.concat(IIndexConstants.ONE_STAR, typeQualification); } typeSimpleName = CharOperation.subarray(typePart, lastDotPosition + 1, typePart.length); } else { typeSimpleName = typePart; } if (typeSimpleName.length == 1 && typeSimpleName[0] == '*') typeSimpleName = null; |
| ||||
if (lastDotPosition >= 0) { returnTypeQualification = CharOperation.subarray(returnTypePart, 0, lastDotPosition); if (returnTypeQualification.length == 1 && returnTypeQualification[0] == '*') { returnTypeQualification = null; } else { // because of an import returnTypeQualification = CharOperation.concat(IIndexConstants.ONE_STAR, returnTypeQualification); } returnTypeSimpleName = CharOperation.subarray(returnTypePart, lastDotPosition + 1, returnTypePart.length); } else { returnTypeSimpleName = returnTypePart; } if (returnTypeSimpleName.length == 1 && returnTypeSimpleName[0] == '*') returnTypeSimpleName = null; |
| |||
if (lastDotPosition >= 0) { [[#variablec1c4dfc0]]= CharOperation.subarray( [[#variable52777500]], 0, lastDotPosition); if ( [[#variablec1c4dfc0]].length == 1 && [[#variablec1c4dfc0]][0] == '*') { [[#variablec1c4dfc0]]= null; } else { [[#variablec1c4dfc0]]= CharOperation.concat(IIndexConstants.ONE_STAR, [[#variablec1c4dfc0]]); } [[#variablec30b7580]]= CharOperation.subarray( [[#variable52777500]], lastDotPosition + 1, [[#variable52777500]].length); } else { [[#variablec30b7580]]= [[#variable52777500]]; } if ( [[#variablec30b7580]].length == 1 && [[#variablec30b7580]][0] == '*') [[#variablec30b7580]]= null; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c1c4dfc0]] | typeQualification |
1 | 2 | [[#c1c4dfc0]] | returnTypeQualification |
2 | 1 | [[#52777500]] | typePart |
2 | 2 | [[#52777500]] | returnTypePart |
3 | 1 | [[#c30b7580]] | typeSimpleName |
3 | 2 | [[#c30b7580]] | returnTypeSimpleName |