CloneSet2394


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.967class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1867
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java
28105
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java
Clone Instance
1
Line Count
8
Source Line
67
Source File
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;
            }


Clone Instance
2
Line Count
8
Source Line
105
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java

            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;
            }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5f17640]]
arrayTypes 
12[[#b5f17640]]
groupedElements 
21[[#b5f175c0]]
getArrayTypes 
22[[#b5f175c0]]
getArrayElements 
31[[#b5f174a0]]
types 
32[[#b5f174a0]]
elements