CloneSet948


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.992class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1141211
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/LocalEvaluationEngine.java
214279
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/JavaDebugUtils.java
Clone Instance
1
Line Count
14
Source Line
1211
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/LocalEvaluationEngine.java

        /**
         * Returns an array of simple type names that are
         * part of the given type's qualified name. For
         * example, if the given name is <code>x.y.A$B</code>,
         * an array with <code>["A", "B"]</code> is returned.
         * 
         * @param typeName fully qualified type name
         * @return array of nested type names
         */
        protected String[] getNestedTypeNames(String typeName) {
                int index = typeName.lastIndexOf('.');
                if (index >= 0) {
                        typeName = typeName.substring(index + 1);
                }
                index = typeName.indexOf('$');
                ArrayList list = new ArrayList(1);
                while (index >= 0) {
                        list.add(typeName.substring(0, index));
                        typeName = typeName.substring(index + 1);
                        index = typeName.indexOf('$');
                }
                list.add(typeName);
                return (String[]) list.toArray(new String[list.size()]);
        }


Clone Instance
2
Line Count
14
Source Line
279
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/JavaDebugUtils.java

    /**
     * Returns an array of simple type names that are
     * part of the given type's qualified name. For
     * example, if the given name is <code>x.y.A$B</code>,
     * an array with <code>["A", "B"]</code> is returned.
     * 
     * @param typeName fully qualified type name
     * @return array of nested type names
     */
    private static String[] getNestedTypeNames(String typeName) {
        int index = typeName.lastIndexOf('.');
        if (index >= 0) {
            typeName = typeName.substring(index + 1);
        }
        index = typeName.indexOf('$');
        List list = new ArrayList(1);
        while (index >= 0) {
            list.add(typeName.substring(0, index));
            typeName = typeName.substring(index + 1);
            index = typeName.indexOf('$');
        }
        list.add(typeName);
        return (String[]) list.toArray(new String[list.size()]);
    }


Clone AbstractionParameter Count: 2Parameter Bindings

 [[#variableb918e8a0]]String[] getNestedTypeNames(String typeName) {
  int index = typeName.lastIndexOf('.');
  if (index >= 0) {
    typeName = typeName.substring(index + 1);
  }
  index = typeName.indexOf('$');
   [[#variableb918e840]] list = new ArrayList(1);
  while (index >= 0) {
    list.add(typeName.substring(0, index));
    typeName = typeName.substring(index + 1);
    index = typeName.indexOf('$');
  }
  list.add(typeName);
  return (String[]) list.toArray(new String[list.size()]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b918e8a0]]
/**
 * Returns an array of simple type names that are
 * part of the given type's qualified name. For
 * example, if the given name is <code>x.y.A$B</code>,
 * an array with <code>["A", "B"]</code> is returned.
 * 
 * @param typeName fully qualified type name
 * @return array of nested type names
 */
protected 
12[[#b918e8a0]]
/**
 * Returns an array of simple type names that are
 * part of the given type's qualified name. For
 * example, if the given name is <code>x.y.A$B</code>,
 * an array with <code>["A", "B"]</code> is returned.
 * 
 * @param typeName fully qualified type name
 * @return array of nested type names
 */
private static 
21[[#b918e840]]
ArrayList 
22[[#b918e840]]
List