Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 4 | 4 | 0.974 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 81 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java |
2 | 13 | 119 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java |
3 | 13 | 214 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java |
4 | 13 | 256 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java |
| ||||
{ MultiVariable mv = (MultiVariable) variable; String[] arrays = ((JavaContext) context).getArrays(); String[][] types = ((JavaContext) context).getArrayTypes(); for (int i = 0; i < arrays.length; i++) { mv.setValues(arrays[i], types[i]); } if (arrays.length > 1 || types.length == 1 && types[0].length > 1) variable.setUnambiguous(false); else variable.setUnambiguous(isUnambiguous(context)); } |
| ||||
{ MultiVariable mv = (MultiVariable) variable; String[] arrays = ((JavaContext) context).getArrays(); String[][] elems = ((JavaContext) context).getArrayElements(); for (int i = 0; i < arrays.length; i++) { mv.setValues(arrays[i], elems[i]); } if (arrays.length > 1 || elems.length == 1 && elems[0].length > 1) variable.setUnambiguous(false); else variable.setUnambiguous(isUnambiguous(context)); } |
| ||||
{ MultiVariable mv = (MultiVariable) variable; String[] iterables = ((JavaContext) context).getIterables(); String[][] types = ((JavaContext) context).getIterableTypes(); for (int i = 0; i < iterables.length; i++) { mv.setValues(iterables[i], types[i]); } if (iterables.length > 1 || types.length == 1 && types[0].length > 1) variable.setUnambiguous(false); else variable.setUnambiguous(isUnambiguous(context)); } |
| ||||
{ MultiVariable mv = (MultiVariable) variable; String[] iterables = ((JavaContext) context).getIterables(); String[][] elems = ((JavaContext) context).getIterableElements(); for (int i = 0; i < iterables.length; i++) { mv.setValues(iterables[i], elems[i]); } if (iterables.length > 1 || elems.length == 1 && elems[0].length > 1) variable.setUnambiguous(false); else variable.setUnambiguous(isUnambiguous(context)); } |
| |||
{ MultiVariable mv = (MultiVariable) variable; String[] [[#variable589656a0]]= ((JavaContext) context). [[#variable589655e0]](); String[][] [[#variable58965560]]= ((JavaContext) context). [[#variable589653e0]](); for (int i = 0; i < [[#variable589656a0]].length; i++) { mv.setValues( [[#variable589656a0]][i], [[#variable58965560]][i]); } if ( [[#variable589656a0]].length > 1 || [[#variable58965560]].length == 1 && [[#variable58965560]][0].length > 1) variable.setUnambiguous(false); else variable.setUnambiguous(isUnambiguous(context)); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#589656a0]] | arrays |
1 | 2 | [[#589656a0]] | arrays |
1 | 3 | [[#589656a0]] | iterables |
1 | 4 | [[#589656a0]] | iterables |
2 | 1 | [[#589655e0]] | getArrays |
2 | 2 | [[#589655e0]] | getArrays |
2 | 3 | [[#589655e0]] | getIterables |
2 | 4 | [[#589655e0]] | getIterables |
3 | 1 | [[#58965560]] | types |
3 | 2 | [[#58965560]] | elems |
3 | 3 | [[#58965560]] | types |
3 | 4 | [[#58965560]] | elems |
4 | 1 | [[#589653e0]] | getArrayTypes |
4 | 2 | [[#589653e0]] | getArrayElements |
4 | 3 | [[#589653e0]] | getIterableTypes |
4 | 4 | [[#589653e0]] | getIterableElements |