Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 2 | 0.992 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 1211 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/LocalEvaluationEngine.java |
2 | 14 | 279 | 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 */ 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()]); } |
| ||||
/** * 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()]); } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#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 |
1 | 2 | [[#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 |
2 | 1 | [[#b918e840]] | ArrayList |
2 | 2 | [[#b918e840]] | List |