for (TreePath selectedPath : selectedPaths) {
if (path != null && path.equals(selectedPath)) {
alreadySelected = true;
break;
}
}
if (areEqual(existingKey, fkInfo))
{
result = true;
break;
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTree.java
|
|
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java
|
Method name: void mousePressed(MouseEvent)
|
|
Method name: boolean tableHasForeignKey(String, String, String, ForeignKeyInfo, SessionInfoProvider)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | for (TreePath selectedPath : selectedPaths) {↵ | | 1 | if (are↵
|
2 | if (path != null && path.equals(selectedPath)) ↵ | | 2 | Equal(existingKey, fkInfo))↵
|
3 | {↵ | | 3 | {↵
|
4 | alreadySelected = true;↵ | | 4 | result = true;↵
|
5 | break;↵ | | 5 | break;↵
|
6 | }↵ | | 6 | ↵
|
7 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |