Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 5 | 0.953 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 38 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/ObjectVector.java |
2 | 8 | 48 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56cc5bc0]] | Object |
1 | 2 | [[#56cc5bc0]] | ObjectVector |
2 | 1 | [[#56cc5b60]] | [] |
2 | 2 | [[#56cc5b60]] | |
3 | 1 | [[#56cc5ac0]] | newElements |
3 | 2 | [[#56cc5ac0]] | newVector |
4 | 1 | [[#56cc5b80]] | length |
4 | 2 | [[#56cc5b80]] | size |
5 | 1 | [[#56cc5b20]] | newElements |
5 | 2 | [[#56cc5b20]] | newVector.elements |