File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/UncommentAction.java | File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/DuplicateLineAction.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if(null != _isqlEntryPanel)↵ | 1 | if(null != _isqlEntryPanel)↵ | |
2 | {↵ | 2 | {↵ | |
3 | uncomment(_isqlEntryPanel);↵ | 3 | duplicateLineAction(_isqlEntryPanel);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (null != _panel)↵ | 5 | else if (null != _panel)↵ | |
6 | {↵ | 6 | {↵ | |
7 | uncomment(_panel.getSQLEntryPanel());↵ | 7 | duplicateLineAction(_panel.getSQLEntryPanel());↵ | |
8 | } | 8 |
| |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
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) | 7.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (null != _isqlEntryPanel) | 1 | if (null != _isqlEntryPanel) | |||||||||||||||
2 | uncomment(_isqlEntryPanel); |
| 2 | duplicateLineAction(_isqlEntryPanel); | ||||||||||||||
3 | else if (null != _panel) | 3 | else if (null != _panel) | |||||||||||||||
4 | uncomment(_panel.getSQLEntryPanel()); |
| 4 | duplicateLineAction(_panel.getSQLEntryPanel()); |
Row | Violation |
---|---|
1 | Expression uncomment(_isqlEntryPanel) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression duplicateLineAction(_isqlEntryPanel) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression uncomment(_isqlEntryPanel) is a void method call, and thus it cannot be parameterized |
4 | Expression duplicateLineAction(_isqlEntryPanel) is a void method call, and thus it cannot be parameterized |
5 | Expression uncomment(_panel.getSQLEntryPanel()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression duplicateLineAction(_panel.getSQLEntryPanel()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression uncomment(_panel.getSQLEntryPanel()) is a void method call, and thus it cannot be parameterized |
8 | Expression duplicateLineAction(_panel.getSQLEntryPanel()) is a void method call, and thus it cannot be parameterized |