CloneSet163


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18440.971statement_sequence
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118156
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
218175
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
318194
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
418213
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
Clone Instance
1
Line Count
18
Source Line
156
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java

                                                char[][] acceptedAnnotation = new char[2][];
                                                acceptedAnnotation[0] = packageName;
                                                acceptedAnnotation[1] = typeName;

                                                if (this.acceptedAnnotations == null) {
                                                        this.acceptedAnnotations = new char[10][][];
                                                        this.acceptedAnnotationsModifiers = new int[10];
                                                        this.acceptedAnnotationsCount = 0;
                                                }
                                                length = this.acceptedAnnotations.length;
                                                if (length == this.acceptedAnnotationsCount) {
                                                        int newLength = (length + 1) * 2;
                                                        System.arraycopy(this.acceptedAnnotations, 0, this.acceptedAnnotations = new char[newLength][][], 0, length);
                                                        System.arraycopy(this.acceptedAnnotationsModifiers, 0, this.acceptedAnnotationsModifiers = new int[newLength], 0, length);
                                                }
                                                this.acceptedAnnotationsModifiers[this.acceptedAnnotationsCount] = modifiers;
                                                this.acceptedAnnotations[this.acceptedAnnotationsCount++ ] = acceptedAnnotation;
                                                break;


Clone Instance
2
Line Count
18
Source Line
175
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java

                                                char[][] acceptedEnum = new char[2][];
                                                acceptedEnum[0] = packageName;
                                                acceptedEnum[1] = typeName;

                                                if (this.acceptedEnums == null) {
                                                        this.acceptedEnums = new char[10][][];
                                                        this.acceptedEnumsModifiers = new int[10];
                                                        this.acceptedEnumsCount = 0;
                                                }
                                                length = this.acceptedEnums.length;
                                                if (length == this.acceptedEnumsCount) {
                                                        int newLength = (length + 1) * 2;
                                                        System.arraycopy(this.acceptedEnums, 0, this.acceptedEnums = new char[newLength][][], 0, length);
                                                        System.arraycopy(this.acceptedEnumsModifiers, 0, this.acceptedEnumsModifiers = new int[newLength], 0, length);
                                                }
                                                this.acceptedEnumsModifiers[this.acceptedEnumsCount] = modifiers;
                                                this.acceptedEnums[this.acceptedEnumsCount++ ] = acceptedEnum;
                                                break;


Clone Instance
3
Line Count
18
Source Line
194
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java

                                                char[][] acceptedInterface = new char[2][];
                                                acceptedInterface[0] = packageName;
                                                acceptedInterface[1] = typeName;

                                                if (this.acceptedInterfaces == null) {
                                                        this.acceptedInterfaces = new char[10][][];
                                                        this.acceptedInterfacesModifiers = new int[10];
                                                        this.acceptedInterfacesCount = 0;
                                                }
                                                length = this.acceptedInterfaces.length;
                                                if (length == this.acceptedInterfacesCount) {
                                                        int newLength = (length + 1) * 2;
                                                        System.arraycopy(this.acceptedInterfaces, 0, this.acceptedInterfaces = new char[newLength][][], 0, length);
                                                        System.arraycopy(this.acceptedInterfacesModifiers, 0, this.acceptedInterfacesModifiers = new int[newLength], 0, length);
                                                }
                                                this.acceptedInterfacesModifiers[this.acceptedInterfacesCount] = modifiers;
                                                this.acceptedInterfaces[this.acceptedInterfacesCount++ ] = acceptedInterface;
                                                break;


Clone Instance
4
Line Count
18
Source Line
213
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java

                                                char[][] acceptedClass = new char[2][];
                                                acceptedClass[0] = packageName;
                                                acceptedClass[1] = typeName;

                                                if (this.acceptedClasses == null) {
                                                        this.acceptedClasses = new char[10][][];
                                                        this.acceptedClassesModifiers = new int[10];
                                                        this.acceptedClassesCount = 0;
                                                }
                                                length = this.acceptedClasses.length;
                                                if (length == this.acceptedClassesCount) {
                                                        int newLength = (length + 1) * 2;
                                                        System.arraycopy(this.acceptedClasses, 0, this.acceptedClasses = new char[newLength][][], 0, length);
                                                        System.arraycopy(this.acceptedClassesModifiers, 0, this.acceptedClassesModifiers = new int[newLength], 0, length);
                                                }
                                                this.acceptedClassesModifiers[this.acceptedClassesCount] = modifiers;
                                                this.acceptedClasses[this.acceptedClassesCount++ ] = acceptedClass;
                                                break;


Clone AbstractionParameter Count: 4Parameter Bindings

char[][]  [[#variableb6b7afe0]]= new char[2][];
 [[#variableb6b7afe0]][0] = packageName;
 [[#variableb6b7afe0]][1] = typeName;
if (this. [[#variableb6b7af20]]== null) {
  this. [[#variableb6b7af20]]= new char[10][][];
  this. [[#variableb6b7afc0]]= new int[10];
  this. [[#variableb6b7af60]]= 0;
}
length = this. [[#variableb6b7af20]].length;
if (length == this. [[#variableb6b7af60]]) {
  int newLength = (length + 1) * 2;
  System.arraycopy(this. [[#variableb6b7af20]], 0, this. [[#variableb6b7af20]]= new char[newLength][][], 0, length);
  System.arraycopy(this. [[#variableb6b7afc0]], 0, this. [[#variableb6b7afc0]]= new int[newLength], 0, length);
}
this. [[#variableb6b7afc0]][this. [[#variableb6b7af60]]] = modifiers;
this. [[#variableb6b7af20]][this. [[#variableb6b7af60]]++ ] = [[#variableb6b7afe0]];
break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b6b7afe0]]
acceptedClass 
12[[#b6b7afe0]]
acceptedInterface 
13[[#b6b7afe0]]
acceptedEnum 
14[[#b6b7afe0]]
acceptedAnnotation 
21[[#b6b7af20]]
acceptedClasses 
22[[#b6b7af20]]
acceptedInterfaces 
23[[#b6b7af20]]
acceptedEnums 
24[[#b6b7af20]]
acceptedAnnotations 
31[[#b6b7afc0]]
acceptedClassesModifiers 
32[[#b6b7afc0]]
acceptedInterfacesModifiers 
33[[#b6b7afc0]]
acceptedEnumsModifiers 
34[[#b6b7afc0]]
acceptedAnnotationsModifiers 
41[[#b6b7af60]]
acceptedClassesCount 
42[[#b6b7af60]]
acceptedInterfacesCount 
43[[#b6b7af60]]
acceptedEnumsCount 
44[[#b6b7af60]]
acceptedAnnotationsCount