File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/Application.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/Application.java | |||
Method name: void addToStatusBar(JComponent)
|
Method name: void removeFromStatusBar(JComponent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | final MainFrame mf = getMainFrame();↵ | 1 | final MainFrame mf = getMainFrame();↵ | |
2 | if (mf != null)↵ | 2 | if (mf != null)↵ | |
3 | {↵ | 3 | {↵ | |
4 | mf.addToStatusBar(comp);↵ | 4 | mf.removeFromStatusBar(comp);↵ | |
5 | }↵ | 5 | }↵ | |
6 | else↵ | 6 | else↵ | |
7 | {↵ | 7 | {↵ | |
8 | throw new IllegalStateException(s_stringMgr.getString("Application.error.compadding"));↵ | 8 | throw new IllegalStateException(s_stringMgr.getString("Application.error.compremoving"));↵ | |
9 | } | 9 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 10 |
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) | 26.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | final MainFrame mf = getMainFrame(); | 1 | final MainFrame mf = getMainFrame(); | |||||||||||||||
2 | if (mf != null) | 2 | if (mf != null) | |||||||||||||||
3 | mf.addToStatusBar(comp); |
| 3 | mf.removeFromStatusBar(comp); | ||||||||||||||
else | else | |||||||||||||||||
4 | throw new IllegalStateException(s_stringMgr.getString("Application.error.compadding")); |
| 4 | throw new IllegalStateException(s_stringMgr.getString("Application.error.compremoving")); |
Row | Violation |
---|---|
1 | Expression mf.addToStatusBar(comp) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression mf.removeFromStatusBar(comp) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression mf.addToStatusBar(comp) is a void method call, and thus it cannot be parameterized |
4 | Expression mf.removeFromStatusBar(comp) is a void method call, and thus it cannot be parameterized |