CloneSet1201


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7330.957statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112145
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
212333
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
37389
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
Clone Instance
1
Line Count
12
Source Line
145
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

        //adding the constructor in the methods list
        if (this.missingAbstractMethods == null) {
                this.missingAbstractMethods = new MethodDeclaration[] {
                                                                        methodDeclaration
                                                                      };
        }
        else   {
                MethodDeclaration[] newMethods;
                System.arraycopy(
                        this.missingAbstractMethods, 
                        0, 
                        newMethods = new MethodDeclaration[this.missingAbstractMethods.length + 1], 
                        1, 
                        this.missingAbstractMethods.length);
                newMethods[0] = methodDeclaration;
                this.missingAbstractMethods = newMethods;
        }


Clone Instance
2
Line Count
12
Source Line
333
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

                if (this.methods == null) {
                        this.methods = new AbstractMethodDeclaration[] {
                                                                         constructor
                                                                       };
                }
                else   {
                        AbstractMethodDeclaration[] newMethods;
                        System.arraycopy(
                                this.methods, 
                                0, 
                                newMethods = new AbstractMethodDeclaration[this.methods.length + 1], 
                                1, 
                                this.methods.length);
                        newMethods[0] = constructor;
                        this.methods = newMethods;
                }


Clone Instance
3
Line Count
7
Source Line
389
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

        //adding the constructor in the methods list
        if (this.methods == null) {
                this.methods = new AbstractMethodDeclaration[] {
                                                                 constructor
                                                               };
        }
        else   {
                AbstractMethodDeclaration[] newMethods;
                System.arraycopy(this.methods, 0, newMethods = new AbstractMethodDeclaration[this.methods.length + 1], 1, this.methods.length);
                newMethods[0] = constructor;
                this.methods = newMethods;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

//adding the constructor in the methods list
if (this. [[#variable9c94d4c0]]== null) {
  this. [[#variable9c94d4c0]]= new [[#variable9c94d560]][] {
                                                              [[#variable9c94d540]]
                                                           };
}
else {
   [[#variable9c94d560]][] newMethods;
  System.arraycopy(this. [[#variable9c94d4c0]], 0, newMethods = new [[#variable9c94d560]][this. [[#variable9c94d4c0]].length + 1], 1, this. [[#variable9c94d4c0]].length);
  newMethods[0] = [[#variable9c94d540]];
  this. [[#variable9c94d4c0]]= newMethods;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9c94d4c0]]
methods 
12[[#9c94d4c0]]
missingAbstractMethods 
13[[#9c94d4c0]]
methods 
21[[#9c94d560]]
AbstractMethodDeclaration 
22[[#9c94d560]]
MethodDeclaration 
23[[#9c94d560]]
AbstractMethodDeclaration 
31[[#9c94d540]]
constructor 
32[[#9c94d540]]
methodDeclaration 
33[[#9c94d540]]
constructor