File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/context/ContextResultBox.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/SearchResultBox.java | |||
Method name: void ContextResultBox(IFrameMediator, IContextProvider, IContextSearchManager)
|
Method name: void SearchResultBox(IFrameMediator, ISearchProvider, ISearchCriteria, IResultPanel)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | top.setLayout(new BorderLayout());↵ | 1 | top.setLayout(new BorderLayout());↵ | |
2 | JLabel iconLabel = new JLabel();↵ | 2 | JLabel iconLabel = new JLabel();↵ | |
3 | iconLabel.setIcon(provider↵ | 3 | //iconLabel.setBackground(titleBackground);↵ | |
4 | .getIcon()); | 4 | iconLabel.setIcon(p.getIcon()); | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 5 |
Number of mapped statements | 3 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28 | top.setLayout(new BorderLayout()); | 33 | top.setLayout(new BorderLayout()); | |||||||||||||||
29 | JLabel iconLabel = new JLabel(); | 34 | JLabel iconLabel = new JLabel(); | |||||||||||||||
30 | iconLabel.setIcon(provider.getIcon()); |
| 35 | iconLabel.setIcon(p.getIcon()); |
Row | Violation |
---|---|
1 | Type org.columba.core.context.api.IContextProvider of variable provider does not match with type org.columba.core.search.api.ISearchProvider of variable p |