Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 1 | 0.992 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 205 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NaiveASTFlattener.java |
2 | 21 | 189 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java |
| ||||
/* * @see ASTVisitor#visit(ArrayCreation) */ public boolean visit(ArrayCreation node) { this.buffer.append("new "); //$NON-NLS-1$ ArrayType at = node.getType(); int dims = at.getDimensions(); Type elementType = at.getElementType(); elementType.accept(this ); for (Iterator it = node.dimensions().iterator(); it.hasNext();) { this.buffer.append("["); //$NON-NLS-1$ Expression e = (Expression) it.next(); e.accept(this ); this.buffer.append("]"); //$NON-NLS-1$ dims--; } // add empty "[]" for each extra array dimension for (int i = 0; i < dims; i++) { this.buffer.append("[]"); //$NON-NLS-1$ } if (node.getInitializer() != null) { node.getInitializer().accept(this ); } return false; } |
| ||||
/* * @see ASTVisitor#visit(ArrayCreation) */ public boolean visit(ArrayCreation node) { this.fBuffer.append("new "); //$NON-NLS-1$ ArrayType at = node.getType(); int dims = at.getDimensions(); Type elementType = at.getElementType(); elementType.accept(this ); for (Iterator it = node.dimensions().iterator(); it.hasNext();) { this.fBuffer.append("["); //$NON-NLS-1$ Expression e = (Expression) it.next(); e.accept(this ); this.fBuffer.append("]"); //$NON-NLS-1$ dims--; } // add empty "[]" for each extra array dimension for (int i = 0; i < dims; i++) { this.fBuffer.append("[]"); //$NON-NLS-1$ } if (node.getInitializer() != null) { node.getInitializer().accept(this ); } return false; } |
| |||
/* * @see ASTVisitor#visit(ArrayCreation) */ public boolean visit(ArrayCreation node) { this. [[#variable78129ca0]].append("new "); //$NON-NLS-1$ ArrayType at = node.getType(); int dims = at.getDimensions(); Type elementType = at.getElementType(); elementType.accept(this ); for (Iterator it = node.dimensions().iterator(); it.hasNext();) { this. [[#variable78129ca0]].append("["); //$NON-NLS-1$ Expression e = (Expression) it.next(); e.accept(this ); this. [[#variable78129ca0]].append("]"); //$NON-NLS-1$ dims--; } // add empty "[]" for each extra array dimension for (int i = 0; i < dims; i++) { this. [[#variable78129ca0]].append("[]"); //$NON-NLS-1$ } if (node.getInitializer() != null) { node.getInitializer().accept(this ); } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#78129ca0]] | fBuffer |
1 | 2 | [[#78129ca0]] | buffer |