CloneSet1341


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18250.978class_body_declarations[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11840
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorPattern.java
21846
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodPattern.java
Clone Instance
1
Line Count
18
Source Line
40
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorPattern.java

// Signatures and arguments for generic search
char[][][] parametersTypeSignatures;

char[][][][] parametersTypeArguments;

boolean constructorParameters = false;

char[][] constructorArguments;

protected static char[][] REF_CATEGORIES = {
                                             CONSTRUCTOR_REF
                          };

protected static char[][] REF_AND_DECL_CATEGORIES = {
                                                      CONSTRUCTOR_REF, CONSTRUCTOR_DECL
                          };

protected static char[][] DECL_CATEGORIES = {
                                              CONSTRUCTOR_DECL
                          };

/**
 * Constructor entries are encoded as TypeName '/' Arity:
 * e.g. 'X/0'
 */
public static char[] createIndexKey(char[] typeName, int argCount) {
        char[] countChars = argCount < 10 ?
                  COUNTS[argCount]:
                  ("/" + String.valueOf(argCount)).toCharArray(); //$NON-NLS-1$
        return CharOperation.concat(typeName, countChars);
}


Clone Instance
2
Line Count
18
Source Line
46
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodPattern.java

char[][][] parametersTypeSignatures;

char[][][][] parametersTypeArguments;

boolean methodParameters = false;

char[][] methodArguments;

protected static char[][] REF_CATEGORIES = {
                                             METHOD_REF
                          };

protected static char[][] REF_AND_DECL_CATEGORIES = {
                                                      METHOD_REF, METHOD_DECL
                          };

protected static char[][] DECL_CATEGORIES = {
                                              METHOD_DECL
                          };

/**
 * Method entries are encoded as selector '/' Arity:
 * e.g. 'foo/0'
 */
public static char[] createIndexKey(char[] selector, int argCount) {
        char[] countChars = argCount < 10 ?
                  COUNTS[argCount]:
                  ("/" + String.valueOf(argCount)).toCharArray(); //$NON-NLS-1$
        return CharOperation.concat(selector, countChars);
}


Clone AbstractionParameter Count: 5Parameter Bindings

// Signatures and arguments for generic search
char[][][] parametersTypeSignatures;

char[][][][] parametersTypeArguments;

boolean  [[#variable587ff700]]= false;

char[][]  [[#variable587ff6a0]];

protected static char[][] REF_CATEGORIES = {
                             [[#variable587ff5c0]]
                          };

protected static char[][] REF_AND_DECL_CATEGORIES = {
                             [[#variable587ff5c0]],
                             [[#variable587ff560]]
                          };

protected static char[][] DECL_CATEGORIES = {
                             [[#variable587ff560]]
                          };

/**
 * Constructor entries are encoded as TypeName '/' Arity:
 * e.g. 'X/0'
 */
/**
 * Method entries are encoded as selector '/' Arity:
 * e.g. 'foo/0'
 */
public static char[] createIndexKey(char[]  [[#variable527be6e0]], int argCount) {
  char[] countChars = argCount < 10 ? COUNTS[argCount]: ("/" + String.valueOf(argCount)).toCharArray(); //$NON-NLS-1$
  return CharOperation.concat( [[#variable527be6e0]], countChars);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#587ff700]]
constructorParameters 
12[[#587ff700]]
methodParameters 
21[[#587ff6a0]]
constructorArguments 
22[[#587ff6a0]]
methodArguments 
31[[#587ff5c0]]
CONSTRUCTOR_REF 
32[[#587ff5c0]]
METHOD_REF 
41[[#587ff560]]
CONSTRUCTOR_DECL 
42[[#587ff560]]
METHOD_DECL 
51[[#527be6e0]]
typeName 
52[[#527be6e0]]
selector