CloneSet403


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


Clone Instance
2
Line Count
13
Source Line
119
Source File
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[][] 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));
                                                               }


Clone Instance
3
Line Count
13
Source Line
214
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java

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


Clone Instance
4
Line Count
13
Source Line
256
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java

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


Clone AbstractionParameter Count: 4Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#589656a0]]
arrays 
12[[#589656a0]]
arrays 
13[[#589656a0]]
iterables 
14[[#589656a0]]
iterables 
21[[#589655e0]]
getArrays 
22[[#589655e0]]
getArrays 
23[[#589655e0]]
getIterables 
24[[#589655e0]]
getIterables 
31[[#58965560]]
types 
32[[#58965560]]
elems 
33[[#58965560]]
types 
34[[#58965560]]
elems 
41[[#589653e0]]
getArrayTypes 
42[[#589653e0]]
getArrayElements 
43[[#589653e0]]
getIterableTypes 
44[[#589653e0]]
getIterableElements