Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 4 | 4 | 0.971 | statement_sequence |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 156 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java |
2 | 18 | 175 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java |
3 | 18 | 194 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java |
4 | 18 | 213 | 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; |
| ||||
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; |
| ||||
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; |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b6b7afe0]] | acceptedClass |
1 | 2 | [[#b6b7afe0]] | acceptedInterface |
1 | 3 | [[#b6b7afe0]] | acceptedEnum |
1 | 4 | [[#b6b7afe0]] | acceptedAnnotation |
2 | 1 | [[#b6b7af20]] | acceptedClasses |
2 | 2 | [[#b6b7af20]] | acceptedInterfaces |
2 | 3 | [[#b6b7af20]] | acceptedEnums |
2 | 4 | [[#b6b7af20]] | acceptedAnnotations |
3 | 1 | [[#b6b7afc0]] | acceptedClassesModifiers |
3 | 2 | [[#b6b7afc0]] | acceptedInterfacesModifiers |
3 | 3 | [[#b6b7afc0]] | acceptedEnumsModifiers |
3 | 4 | [[#b6b7afc0]] | acceptedAnnotationsModifiers |
4 | 1 | [[#b6b7af60]] | acceptedClassesCount |
4 | 2 | [[#b6b7af60]] | acceptedInterfacesCount |
4 | 3 | [[#b6b7af60]] | acceptedEnumsCount |
4 | 4 | [[#b6b7af60]] | acceptedAnnotationsCount |