File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/ExternalToolsManager.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/columns/ColumnConfigDialog.java | |||
Method name: XmlElement getConfiguration(String)
|
Method name: XmlElement findColumn(XmlElement, String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | for (int i = 0; i < root.count(); i++) {↵ | 1 | for (int i = 0; i < parent.count(); i++) {↵ | |
2 | XmlElement child = root.getElement(i);↵ | 2 | XmlElement child = parent.getElement(i);↵ | |
3 | if (child.getAttribute("name").equals(id)) {↵ | 3 | if (child.getAttribute("name").equals(name)) {↵ | |
4 | return child;↵ | 4 | return child;↵ | |
5 | }↵ | 5 | }↵ | |
6 | }↵ | 6 | }↵ | |
7 | return null; | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | for (int i = 0; i < root.count(); i++) |
| 1 | for (int i = 0; i < parent.count(); i++) | ||||||||||
3 | XmlElement child = root.getElement(i); |
| 2 | XmlElement child = parent.getElement(i); | ||||||||||
4 | if (child.getAttribute("name").equals(id)) |
| 3 | if (child.getAttribute("name").equals(name)) | ||||||||||
5 | return child; | 4 | return child; | |||||||||||
6 | return null; | 5 | return null; |
Row | Violation |
---|