File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddUniqueConstraintDialog.java | File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddIndexDialog.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | String local = (String) localColumBox.getSelectedItem();↵ | 1 | String local = (String) _columnBox.getSelectedItem();↵ | |
2 | ↵ | |||
3 | localColumBox.removeItem(local);↵ | 2 | _columnBox.removeItem(local);↵ | |
4 | ↵ | |||
5 | _columnTableModel.addColumn(local); ↵ | 3 | _columnTableModel.addColumn(local);↵ | |
6 | if (localColumBox.getItemCount() == 0) ↵ | 4 | if (_columnBox.getItemCount() == 0)↵ | |
7 | addButton.setEnabled(false);↵ | 5 | _addButton.setEnabled(false);↵ | |
8 | ↵ | |||
9 | AddUniqueConstraintDialog.this.checkInputCompletion(); | 6 | AddIndexDialog.this.checkInputCompletion(); | |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 20 |
Number of mapped statements | 6 |
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) | 5.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | String local = (String)localColumBox.getSelectedItem(); |
| 1 | String local = (String)_columnBox.getSelectedItem(); | |||||||||||||
2 | localColumBox.removeItem(local); |
| 2 | _columnBox.removeItem(local); | |||||||||||||
3 | _columnTableModel.addColumn(local); |
| 3 | _columnTableModel.addColumn(local); | |||||||||||||
4 | if (localColumBox.getItemCount() == 0) |
| 4 | if (_columnBox.getItemCount() == 0) | |||||||||||||
5 | addButton.setEnabled(false); |
| 5 | _addButton.setEnabled(false); | |||||||||||||
6 | AddUniqueConstraintDialog.this.checkInputCompletion(); |
| 6 | AddIndexDialog.this.checkInputCompletion(); |
Row | Violation |
---|---|
1 | Expression _columnTableModel cannot be unified with expression _columnTableModel , because common superclass javax.swing.table.AbstractTableModel does not declare member(s) public void addColumn(java.lang.String) |
2 | Expression AddUniqueConstraintDialog cannot be unified with expression AddIndexDialog , because common superclass net.sourceforge.squirrel_sql.plugins.refactoring.gui.AbstractRefactoringTabbedDialog does not declare member(s) private void checkInputCompletion() |
3 | The refactoring of the clones is infeasible, because classes and do not have a common superclass |