| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 4 | 3 | 0.957 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 9 | 424 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java |
| 2 | 9 | 665 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java |
| 3 | 7 | 200 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddJavaDocStubAction.java |
| 4 | 9 | 164 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateNewConstructorUsingFieldsAction.java |
| ||||
if (index == 0) {
// remember the CU of the first element
unit = field.getCompilationUnit();
if (unit == null) {
return null;
}
}
else if ( !unit.equals(field.getCompilationUnit())) {
// all fields must be in the same CU
return null;
}
|
| ||||
if (i == 0) {
// remember the cu of the first element
cu = fld.getCompilationUnit();
if (cu == null) {
return null;
}
}
else if ( !cu.equals(fld.getCompilationUnit())) {
// all fields must be in the same CU
return null;
}
|
| ||||
if (i == 0) {
cu = member.getCompilationUnit();
if (cu == null) {
return null;
}
}
else if ( !cu.equals(member.getCompilationUnit())) {
return null;
}
|
| ||||
if (index == 0) {
// remember the CU of the first element
unit = field.getCompilationUnit();
if (unit == null) {
return null;
}
}
else if ( !unit.equals(field.getCompilationUnit())) {
// all fields must be in the same CU
return null;
}
|
| |||
if ( [[#variablebabcd660]]== 0) {
[[#variableb9cd75e0]]= [[#variableb8eed400]].getCompilationUnit();
if ( [[#variableb9cd75e0]]== null) {
return null;
}
}
else
if ( ! [[#variableb9cd75e0]].equals( [[#variableb8eed400]].getCompilationUnit())) {
// all fields must be in the same CU
return null;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#babcd660]] | index |
| 1 | 2 | [[#babcd660]] | i |
| 1 | 3 | [[#babcd660]] | i |
| 1 | 4 | [[#babcd660]] | index |
| 2 | 1 | [[#b9cd75e0]] | // remember the CU of the first element unit |
| 2 | 2 | [[#b9cd75e0]] | // remember the cu of the first element cu |
| 2 | 3 | [[#b9cd75e0]] | cu |
| 2 | 4 | [[#b9cd75e0]] | // remember the CU of the first element unit |
| 3 | 1 | [[#b8eed400]] | field |
| 3 | 2 | [[#b8eed400]] | fld |
| 3 | 3 | [[#b8eed400]] | member |
| 3 | 4 | [[#b8eed400]] | field |