CloneSet1242


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.950statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112604
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/FactoryPathConfigurationBlock.java
212640
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/FactoryPathConfigurationBlock.java
Clone Instance
1
Line Count
12
Source Line
604
Source File
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/FactoryPathConfigurationBlock.java

                        if (selected == null) {
                                return null;
                        }
                        ArrayList<FactoryPathEntry> res = new ArrayList<FactoryPathEntry>();
                        for (int i = 0; i < selected.length; i++) {
                                FactoryContainer fc = FactoryPathUtil.newExtJarFactoryContainer(selected[i].toFile());
                                // assume defaults of enabled=true, runInAptMode=false
                                FactoryPath.Attributes attr = new FactoryPath.Attributes(true, false);
                                FactoryPathEntry fpe = new FactoryPathEntry(fc, attr);
                                res.add(fpe);
                        }
                        return res.toArray(new FactoryPathEntry[res.size()]);


Clone Instance
2
Line Count
12
Source Line
640
Source File
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/FactoryPathConfigurationBlock.java

                        if (selected == null) {
                                return null;
                        }
                        ArrayList<FactoryPathEntry> res = new ArrayList<FactoryPathEntry>();
                        for (int i = 0; i < selected.length; i++) {
                                FactoryContainer fc = FactoryPathUtil.newVarJarFactoryContainer(selected[i]);
                                // assume defaults of enabled=true, runInAptMode=false
                                FactoryPath.Attributes attr = new FactoryPath.Attributes(true, false);
                                FactoryPathEntry fpe = new FactoryPathEntry(fc, attr);
                                res.add(fpe);
                        }
                        return res.toArray(new FactoryPathEntry[res.size()]);


Clone AbstractionParameter Count: 2Parameter Bindings

if (selected == null) {
  return null;
}
ArrayList<FactoryPathEntry> res = new ArrayList<FactoryPathEntry>();
for (int i = 0; i < selected.length; i++) {
  FactoryContainer fc = FactoryPathUtil. [[#variableb1e06f80]]( [[#variableb1e06f20]]);
  // assume defaults of enabled=true, runInAptMode=false
  FactoryPath.Attributes attr = new FactoryPath.Attributes(true, false);
  FactoryPathEntry fpe = new FactoryPathEntry(fc, attr);
  res.add(fpe);
}
return res.toArray(new FactoryPathEntry[res.size()]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1e06f80]]
newExtJarFactoryContainer 
12[[#b1e06f80]]
newVarJarFactoryContainer 
21[[#b1e06f20]]
selected[i].toFile() 
22[[#b1e06f20]]
selected[i]