CloneSet2044


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9430.957statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19424
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
29665
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
37200
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddJavaDocStubAction.java
49164
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateNewConstructorUsingFieldsAction.java
Clone Instance
1
Line Count
9
Source Line
424
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.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;
                                               }


Clone Instance
2
Line Count
9
Source Line
665
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java

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


Clone Instance
3
Line Count
7
Source Line
200
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddJavaDocStubAction.java

                                        if (i == 0) {
                                                cu = member.getCompilationUnit();
                                                if (cu == null) {
                                                        return null;
                                                }
                                        }
                                        else   if ( !cu.equals(member.getCompilationUnit())) {
                                                return null;
                                               }


Clone Instance
4
Line Count
9
Source Line
164
Source File
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;
                                               }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#babcd660]]
index 
12[[#babcd660]]
i 
13[[#babcd660]]
i 
14[[#babcd660]]
index 
21[[#b9cd75e0]]
// remember the CU of the first element
unit 
22[[#b9cd75e0]]
// remember the cu of the first element
cu 
23[[#b9cd75e0]]
cu 
24[[#b9cd75e0]]
// remember the CU of the first element
unit 
31[[#b8eed400]]
field 
32[[#b8eed400]]
fld 
33[[#b8eed400]]
member 
34[[#b8eed400]]
field