Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 5 | 0.951 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 419 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java |
2 | 8 | 3368 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java |
| ||||
/** * Returns the char arrays as an array of Strings * * @param charArrays the char array to convert * @return the char arrays as an array of Strings or null if the given char arrays is null. * @since 3.0 */ public static String[] charArrayToStringArray(char[][] charArrays) { if (charArrays == null) return null; int length = charArrays.length; if (length == 0) return NO_STRINGS; String[] strings = new String[length]; for (int i = 0; i < length; i++) strings[i] = new String(charArrays[i]); return strings; } |
| ||||
/** * Answers an array of strings from the given array of char array. * * @param array the given array * @return an array of strings * @since 3.0 */ final static public String[] toStrings(char[][] array) { if (array == null) return NO_STRINGS; int length = array.length; if (length == 0) return NO_STRINGS; String[] result = new String[length]; for (int i = 0; i < length; i++) result[i] = new String(array[i]); return result; } |
| |||
[[#variable964eb540]]String[] [[#variable964eb480]](char[][] [[#variable964eb420]]) { if ( [[#variable964eb420]]== null) return [[#variable964eb3c0]]; int length = [[#variable964eb420]].length; if (length == 0) return NO_STRINGS; String[] [[#variable964eb340]]= new String[length]; for (int i = 0; i < length; i++) [[#variable964eb340]][i] = new String( [[#variable964eb420]][i]); return [[#variable964eb340]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#964eb540]] | /** * Answers an array of strings from the given array of char array. * * @param array the given array * @return an array of strings * @since 3.0 */ final static public |
1 | 2 | [[#964eb540]] | /** * Returns the char arrays as an array of Strings * * @param charArrays the char array to convert * @return the char arrays as an array of Strings or null if the given char arrays is null. * @since 3.0 */ public static |
2 | 1 | [[#964eb480]] | toStrings |
2 | 2 | [[#964eb480]] | charArrayToStringArray |
3 | 1 | [[#964eb420]] | array |
3 | 2 | [[#964eb420]] | charArrays |
4 | 1 | [[#964eb3c0]] | NO_STRINGS |
4 | 2 | [[#964eb3c0]] | null |
5 | 1 | [[#964eb340]] | result |
5 | 2 | [[#964eb340]] | strings |