File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/FontInfo.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/TablePopupMenu.java | |||
Method name: void FontInfo()
|
Method name: void TablePopupMenu(boolean, IDataSetUpdateableModel, DataSetViewerTablePanel)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | super();↵ | |||
2 | setFamily(DEFAULT_FAMILY);↵ | |||
3 | setSize(12); | 1 | if (_updateableModel != null && allowEditing==false) {↵ | |
2 | addSeparator();↵ | |||
3 | add(_insertRow);↵ | |||
4 | add(_deleteRows);↵ | |||
5 |
| |||
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 |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(); | | |||||||||||||||||||||
2 | setFamily(DEFAULT_FAMILY); |
| 33 | addSeparator(); | |||||||||||||||||||
3 | setSize(12); |
| | ||||||||||||||||||||
| 34 | add(_insertRow); | |||||||||||||||||||||
| 35 | add(_deleteRows); |
Row | Violation |
---|---|
1 | Expression setFamily(DEFAULT_FAMILY) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression setFamily(DEFAULT_FAMILY) is a void method call, and thus it cannot be parameterized |
3 | Expression addSeparator() is a void method call, and thus it cannot be parameterized |
4 | Expression setFamily(DEFAULT_FAMILY) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression setFamily(DEFAULT_FAMILY) 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 | Unmatched statement setSize(12); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
8 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.fw.gui.FontInfo and net.sourceforge.squirrel_sql.fw.gui.TablePopupMenu do not have a common superclass |