CloneSet1559


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8250.953class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1838
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/ObjectVector.java
2848
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/ObjectVector.java
Clone Instance
1
Line Count
8
Source Line
38
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/ObjectVector.java

        public void addAll(Object[] newElements) {

                if (this.size + newElements.length >= this.maxSize) {
                        maxSize = this.size + newElements.length; // assume no more elements will be added
                        System.arraycopy(this.elements, 0, (this.elements = new Object[this.maxSize]), 0, this.size);
                }
                System.arraycopy(newElements, 0, this.elements, size, newElements.length);
                this.size += newElements.length;
        }


Clone Instance
2
Line Count
8
Source Line
48
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/ObjectVector.java

        public void addAll(ObjectVector newVector) {

                if (this.size + newVector.size >= this.maxSize) {
                        maxSize = this.size + newVector.size; // assume no more elements will be added
                        System.arraycopy(this.elements, 0, (this.elements = new Object[this.maxSize]), 0, this.size);
                }
                System.arraycopy(newVector.elements, 0, this.elements, size, newVector.size);
                this.size += newVector.size;
        }


Clone AbstractionParameter Count: 5Parameter Bindings

public void addAll( [[#variable56cc5bc0]] [[#variable56cc5b60]]  [[#variable56cc5ac0]]) {
  if (this.size +  [[#variable56cc5ac0]]. [[#variable56cc5b80]]>= this.maxSize) {
    maxSize = this.size +  [[#variable56cc5ac0]]. [[#variable56cc5b80]]; // assume no more elements will be added
    System.arraycopy(this.elements, 0, (this.elements = new Object[this.maxSize]), 0, this.size);
  }
  System.arraycopy( [[#variable56cc5b20]], 0, this.elements, size,  [[#variable56cc5ac0]]. [[#variable56cc5b80]]);
  this.size += [[#variable56cc5ac0]]. [[#variable56cc5b80]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56cc5bc0]]
Object 
12[[#56cc5bc0]]
ObjectVector 
21[[#56cc5b60]]
[] 
22[[#56cc5b60]]
31[[#56cc5ac0]]
newElements 
32[[#56cc5ac0]]
newVector 
41[[#56cc5b80]]
length 
42[[#56cc5b80]]
size 
51[[#56cc5b20]]
newElements 
52[[#56cc5b20]]
newVector.elements