File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/facade/FolderFacade.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/base/FolderComboBox.java | |||
Method name: void getChildren(AddressbookTreeModel, Object, Vector
|
Method name: void getChildren(AddressbookTreeModel, Object, Vector
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | int childCount = model.getChildCount(parent); ↵ | 1 | int childCount = model.getChildCount(parent);↵ | |
2 | for ( int i=0; i<childCount; i++) { ↵ | 2 | for (int i = 0; i < childCount; i++) {↵ | |
3 | Object child = model.getChild(parent, i); ↵ | 3 | Object child = model.getChild(parent, i);↵ | |
4 | v.add((IFolder) child);↵ | 4 | v.add((IFolder) child);↵ | |
5 | ↵ | |||
6 | getChildren(model, child, v); ↵ | 5 | getChildren(model, child, v);↵ | |
7 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 17 |
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) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int childCount = model.getChildCount(parent); | 1 | int childCount = model.getChildCount(parent); | ||||||||||||||||||
2 | for (int i = 0; i < childCount; i++) | 2 | for (int i = 0; i < childCount; i++) | ||||||||||||||||||
3 | Object child = model.getChild(parent, i); | 3 | Object child = model.getChild(parent, i); | ||||||||||||||||||
4 | v.add((IFolder)child); |
| 4 | v.add((IFolder)child); | |||||||||||||||||
5 | getChildren(model, child, v); |
| 5 | getChildren(model, child, v); |
Row | Violation |
---|---|
1 | Expression (IFolder)child cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression (IFolder)child cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Type org.columba.addressbook.facade.IFolder of variable (IFolder)child does not match with type org.columba.addressbook.folder.IFolder of variable (IFolder)child |
4 | Type java.util.Vector<org.columba.addressbook.facade.IFolder> of variable v does not match with type java.util.Vector<org.columba.addressbook.folder.IFolder> of variable v |
5 | Type java.util.Vector<org.columba.addressbook.facade.IFolder> of variable v does not match with type java.util.Vector<org.columba.addressbook.folder.IFolder> of variable v |