Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 3 | 0.967 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 67 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java |
2 | 8 | 105 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java |
| ||||
protected String[] resolveAll(TemplateContext context) { String[][] arrayTypes = ((JavaContext) context).getArrayTypes(); String[] types = new String[arrayTypes.length]; for (int i = 0; i < types.length; i++) { types[i] = arrayTypes[i][0]; } return types; } |
| ||||
protected String[] resolveAll(TemplateContext context) { String[][] groupedElements = ((JavaContext) context).getArrayElements(); String[] elements = new String[groupedElements.length]; for (int i = 0; i < elements.length; i++) { elements[i] = groupedElements[i][0]; } return elements; } |
| |||
protected String[] resolveAll(TemplateContext context) { String[][] [[#variableb5f17640]]= ((JavaContext) context). [[#variableb5f175c0]](); String[] [[#variableb5f174a0]]= new String[ [[#variableb5f17640]].length]; for (int i = 0; i < [[#variableb5f174a0]].length; i++) { [[#variableb5f174a0]][i] = [[#variableb5f17640]][i][0]; } return [[#variableb5f174a0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b5f17640]] | arrayTypes |
1 | 2 | [[#b5f17640]] | groupedElements |
2 | 1 | [[#b5f175c0]] | getArrayTypes |
2 | 2 | [[#b5f175c0]] | getArrayElements |
3 | 1 | [[#b5f174a0]] | types |
3 | 2 | [[#b5f174a0]] | elements |