CloneSet1253


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.960statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114535
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchPattern.java
214926
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchPattern.java
Clone Instance
1
Line Count
14
Source Line
535
Source File
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;


Clone Instance
2
Line Count
14
Source Line
926
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchPattern.java

                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;


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c1c4dfc0]]
typeQualification 
12[[#c1c4dfc0]]
returnTypeQualification 
21[[#52777500]]
typePart 
22[[#52777500]]
returnTypePart 
31[[#c30b7580]]
typeSimpleName 
32[[#c30b7580]]
returnTypeSimpleName