Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 1 | 0.997 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 71 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/AddImportOnSelectionAction.java |
2 | 18 | 138 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java |
| ||||
private static final class AddImportComparator implements Comparator { public int compare(Object o1, Object o2) { if (((String) o1).equals(o2)) return 0; History history = QualifiedTypeNameHistory.getDefault(); int pos1 = history.getPosition(o1); int pos2 = history.getPosition(o2); if (pos1 == pos2) return Collator.getInstance().compare(o1, o2); if (pos1 > pos2) { return -1; } else { return 1; } } } |
| ||||
private static final class OrganizeImportComparator implements Comparator { public int compare(Object o1, Object o2) { if (((String) o1).equals(o2)) return 0; History history = QualifiedTypeNameHistory.getDefault(); int pos1 = history.getPosition(o1); int pos2 = history.getPosition(o2); if (pos1 == pos2) return Collator.getInstance().compare(o1, o2); if (pos1 > pos2) { return -1; } else { return 1; } } } |
| |||
private static final class [[#variable52ea9140]]implements Comparator { public int compare(Object o1, Object o2) { if (((String) o1).equals(o2)) return 0; History history = QualifiedTypeNameHistory.getDefault(); int pos1 = history.getPosition(o1); int pos2 = history.getPosition(o2); if (pos1 == pos2) return Collator.getInstance().compare(o1, o2); if (pos1 > pos2) { return -1; } else { return 1; } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52ea9140]] | OrganizeImportComparator |
1 | 2 | [[#52ea9140]] | AddImportComparator |