Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.976 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 722 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/CompilationUnitCompletion.java |
2 | 11 | 741 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/CompilationUnitCompletion.java |
| ||||
/** * Returns all local arrays in the order that they appear. * * @return all local arrays */ public LocalVariable[] findLocalArrays() { List arrays = new ArrayList(); for (ListIterator iterator = fLocalVariables.listIterator(fLocalVariables.size()); iterator.hasPrevious();) { LocalVariable localVariable = (LocalVariable) iterator.previous(); if (localVariable.isArray()) arrays.add(localVariable); } return (LocalVariable[]) arrays.toArray(new LocalVariable[arrays.size()]); } |
| ||||
/** * Returns all local variables implementing * <code>java.util.Collection</code> in the order that they appear. * * @return all local <code>Collection</code>s */ public LocalVariable[] findLocalCollections() { List collections = new ArrayList(); for (ListIterator iterator = fLocalVariables.listIterator(fLocalVariables.size()); iterator.hasPrevious();) { LocalVariable localVariable = (LocalVariable) iterator.previous(); if (localVariable.isCollection()) collections.add(localVariable); } return (LocalVariable[]) collections.toArray(new LocalVariable[collections.size()]); } |
| |||
/** * Returns all local arrays in the order that they appear. * * @return all local arrays */ /** * Returns all local variables implementing * <code>java.util.Collection</code> in the order that they appear. * * @return all local <code>Collection</code>s */ public LocalVariable[] [[#variablea70a3a40]]() { List [[#variablea70a32e0]]= new ArrayList(); for (ListIterator iterator = fLocalVariables.listIterator(fLocalVariables.size()); iterator.hasPrevious();) { LocalVariable localVariable = (LocalVariable) iterator.previous(); if (localVariable. [[#variablea70a39c0]]()) [[#variablea70a32e0]].add(localVariable); } return (LocalVariable[]) [[#variablea70a32e0]].toArray(new LocalVariable[ [[#variablea70a32e0]].size()]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a70a3a40]] | findLocalArrays |
1 | 2 | [[#a70a3a40]] | findLocalCollections |
2 | 1 | [[#a70a32e0]] | arrays |
2 | 2 | [[#a70a32e0]] | collections |
3 | 1 | [[#a70a39c0]] | isArray |
3 | 2 | [[#a70a39c0]] | isCollection |