CloneSet1933


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8250.951class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110419
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java
283368
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java
Clone Instance
1
Line Count
10
Source Line
419
Source File
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;
}


Clone Instance
2
Line Count
8
Source Line
3368
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java

/**
 * 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;
}


Clone AbstractionParameter Count: 5Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#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 
12[[#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 
21[[#964eb480]]
toStrings 
22[[#964eb480]]
charArrayToStringArray 
31[[#964eb420]]
array 
32[[#964eb420]]
charArrays 
41[[#964eb3c0]]
NO_STRINGS 
42[[#964eb3c0]]
null 
51[[#964eb340]]
result 
52[[#964eb340]]
strings