File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddIndexDialog.java | File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddUniqueConstraintDialog.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | _addButton.addActionListener(new ActionListener()↵ | 1 | addButton.addActionListener(new ActionListener() ↵ | |
2 | {↵ | 2 | { ↵ | |
3 | public void actionPerformed(ActionEvent e)↵ | 3 | public void actionPerformed(ActionEvent e) ↵ | |
4 | {↵ | 4 | { ↵ | |
5 | String local = (String) _columnBox.getSelectedItem();↵ | 5 | String local = (String) localColumBox.getSelectedItem();↵ | |
6 | ↵ | |||
6 | _columnBox.removeItem(local);↵ | 7 | localColumBox.removeItem(local);↵ | |
8 | ↵ | |||
7 | _columnTableModel.addColumn(local);↵ | 9 | _columnTableModel.addColumn(local); ↵ | |
8 | if (_columnBox.getItemCount() == 0)↵ | 10 | if (localColumBox.getItemCount() == 0) ↵ | |
9 | _addButton.setEnabled(false);↵ | 11 | addButton.setEnabled(false);↵ | |
12 | ↵ | |||
10 | AddIndexDialog.this.checkInputCompletion();↵ | 13 | AddUniqueConstraintDialog.this.checkInputCompletion(); ↵ | |
11 | }↵ | 14 | } ↵ | |
12 | }); | 15 |
| |
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 | 1 |
Number of mapped statements | 1 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | _addButton.addActionListener(new ActionListener() {...}); |
| 15 | addButton.addActionListener(new ActionListener() {...}); |
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 AddIndexDialog cannot be unified with expression AddUniqueConstraintDialog , because common superclass net.sourceforge.squirrel_sql.plugins.refactoring.gui.AbstractRefactoringTabbedDialog does not declare member(s) private void checkInputCompletion() |