Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 2 | 0.950 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 604 | plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/FactoryPathConfigurationBlock.java |
2 | 12 | 640 | 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()]); |
| ||||
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()]); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b1e06f80]] | newExtJarFactoryContainer |
1 | 2 | [[#b1e06f80]] | newVarJarFactoryContainer |
2 | 1 | [[#b1e06f20]] | selected[i].toFile() |
2 | 2 | [[#b1e06f20]] | selected[i] |