File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/ErrorDialog.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerTextPanel.java | |||
Method name: void MessagePanel(String)
|
Method name: void MyJTextAreaPopupMenu(boolean, IDataSetUpdateableModel)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | super();↵ | |||
2 | setText(msg);↵ | |||
3 | setBackground(ErrorDialog.getTextAreaBackgroundCol↵ | 1 | addSeparator();↵ | |
2 | add(_makeEditable);↵ | |||
4 | or()); | 3 | addSeparator(); | |
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 | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(); | | |||||||||||||||||||
2 | setText(msg); |
| 4 | addSeparator(); | |||||||||||||||||
| 5 | add(_makeEditable); | |||||||||||||||||||
3 | setBackground(ErrorDialog.getTextAreaBackgroundColor()); |
| 6 | addSeparator(); |
Row | Violation |
---|---|
1 | Expression setText(msg) is a void method call, and thus it cannot be parameterized |
2 | Expression addSeparator() is a void method call, and thus it cannot be parameterized |
3 | Expression setText(msg) is a void method call, and thus it cannot be parameterized |
4 | Expression addSeparator() is a void method call, and thus it cannot be parameterized |
5 | Expression setBackground(ErrorDialog.getTextAreaBackgroundColor()) is a void method call, and thus it cannot be parameterized |
6 | Expression addSeparator() is a void method call, and thus it cannot be parameterized |
7 | Expression setBackground(ErrorDialog.getTextAreaBackgroundColor()) is a void method call, and thus it cannot be parameterized |
8 | Expression addSeparator() is a void method call, and thus it cannot be parameterized |
9 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.fw.gui.ErrorDialog.MessagePanel and net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerTextPanel.MyJTextAreaPopupMenu do not have a common superclass |