CloneSet3237


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.975class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110320
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java
210411
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java
Clone Instance
1
Line Count
10
Source Line
320
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java

        /**
         * Returns proposals for a variable name of a local array element grouped
         * based on local array-typed variables.
         * 
         * @return proposals for a variable name
         */
        public String[][] getArrayElements() {
                ICompilationUnit cu = getCompilationUnit();
                if (cu == null) {
                        return new String[0][];
                }

                CompilationUnitCompletion completion = getCompletion();
                LocalVariable[] localArrays = completion.findLocalArrays();

                return suggestElementNames(localArrays, true);
        }


Clone Instance
2
Line Count
10
Source Line
411
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java

        /**
         * Returns proposals for a variable name of a local iterable element
         * grouped based on local array and collection variables.
         * 
         * @return proposals for a variable name
         */
        public String[][] getIterableElements() {
                ICompilationUnit cu = getCompilationUnit();
                if (cu == null) {
                        return new String[0][];
                }

                CompilationUnitCompletion completion = getCompletion();
                LocalVariable[] iterables = completion.findLocalIterables();

                return suggestElementNames(iterables, false);
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
         * Returns proposals for a variable name of a local array element grouped
         * based on local array-typed variables.
         * 
         * @return proposals for a variable name
         */
/**
         * Returns proposals for a variable name of a local iterable element
         * grouped based on local array and collection variables.
         * 
         * @return proposals for a variable name
         */
public String[][]  [[#variablea39508c0]]() {
  ICompilationUnit cu = getCompilationUnit();
  if (cu == null) {
    return new String[0][];
  }
  CompilationUnitCompletion completion = getCompletion();
  LocalVariable[]  [[#variablea3950840]]= completion. [[#variablea39507c0]]();
  return suggestElementNames( [[#variablea3950840]],  [[#variablea3950740]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a39508c0]]
getArrayElements 
12[[#a39508c0]]
getIterableElements 
21[[#a3950840]]
localArrays 
22[[#a3950840]]
iterables 
31[[#a39507c0]]
findLocalArrays 
32[[#a39507c0]]
findLocalIterables 
41[[#a3950740]]
true 
42[[#a3950740]]
false