File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTreePanel.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTreePanel.java | |||
Method name: void stateChanged(ChangeEvent)
|
Method name: void stateChanged(ChangeEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | StringBuilder buf = new StringBuilder();↵ | 1 | StringBuilder buf = new StringBuilder();↵ | |
2 | buf.append("Source object in TabbedPaneListener was not a JTabbedpane")↵ | 2 | buf.append("Client property in JTabbedPane was not an ObjectTreeTabbedPane")↵ | |
3 | .append(" - it was ")↵ | 3 | .append(" - it was ")↵ | |
4 | .append(src == null ? "null" : src.getClass().getName());↵ | 4 | .append(prop == null ? "null" : prop.getClass().getName());↵ | |
5 | s_log.error(buf.toString());↵ | 5 | s_log.error(buf.toString());↵ | |
6 | return; | 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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 6 |
Number of mapped statements | 4 |
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 | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | StringBuilder buf = new StringBuilder(); | 10 | StringBuilder buf = new StringBuilder(); | |||||||||||||||||
4 | buf.append("Source object in TabbedPaneListener was not a JTabbedpane").append(" - it was ").append(src == null ? "null" : src.getClass().getName()); |
| 11 | buf.append("Client property in JTabbedPane was not an ObjectTreeTabbedPane").append(" - it was ").append(prop == null ? "null" : prop.getClass().getName()); | ||||||||||||||||
5 | s_log.error(buf.toString()); | 12 | s_log.error(buf.toString()); | |||||||||||||||||
6 | return; |
| 13 | return; |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |