| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 3 | 0.986 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 936 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java |
| 2 | 4 | 942 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java |
| ||||
public static boolean hasParameterName(IJavaProject project, String name) {
String prefixes = project.getOption(JavaCore.CODEASSIST_ARGUMENT_PREFIXES, true);
String suffixes = project.getOption(JavaCore.CODEASSIST_ARGUMENT_SUFFIXES, true);
return hasPrefixOrSuffix(prefixes, suffixes, name);
}
|
| ||||
public static boolean hasLocalVariableName(IJavaProject project, String name) {
String prefixes = project.getOption(JavaCore.CODEASSIST_LOCAL_PREFIXES, true);
String suffixes = project.getOption(JavaCore.CODEASSIST_LOCAL_SUFFIXES, true);
return hasPrefixOrSuffix(prefixes, suffixes, name);
}
|
| |||
public static boolean [[#variableb517c080]](IJavaProject project, String name) {
String prefixes = project.getOption(JavaCore. [[#variableb517c020]], true);
String suffixes = project.getOption(JavaCore. [[#variable9b23ff80]], true);
return hasPrefixOrSuffix(prefixes, suffixes, name);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b517c080]] | hasParameterName |
| 1 | 2 | [[#b517c080]] | hasLocalVariableName |
| 2 | 1 | [[#b517c020]] | CODEASSIST_ARGUMENT_PREFIXES |
| 2 | 2 | [[#b517c020]] | CODEASSIST_LOCAL_PREFIXES |
| 3 | 1 | [[#9b23ff80]] | CODEASSIST_ARGUMENT_SUFFIXES |
| 3 | 2 | [[#9b23ff80]] | CODEASSIST_LOCAL_SUFFIXES |