File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileChooserDialog.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileManagerDialog.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (selected != null) {↵ | 1 | if (selected != null) {↵ | |
2 | list.setSelectedValue(selected, true);↵ | 2 | list.setSelectedValue(selected, true);↵ | |
3 | }↵ | |||
4 | ↵ | |||
5 | ↵ | 3 | }↵ | |
6 | getRootPane().setDefaultButton(okButton);↵ | 4 | getRootPane().setDefaultButton(okButton);↵ | |
7 | getRootPane().registerKeyboardAction(this, "CANCEL",↵ | 5 | getRootPane().registerKeyboardAction(this, "C↵ | |
8 | ↵ | 6 | LOSE",↵ | |
9 | KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),↵ | 7 | KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),↵ | |
10 | JComponent.WHEN_IN_FOCUSED_WINDOW); | 8 | JComponent.WHEN_IN_FOCUSED_WINDOW); | |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 8 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | if (selected != null) | 43 | if (selected != null) | |||||||||||
32 | list.setSelectedValue(selected, true); | 44 | list.setSelectedValue(selected, true); | |||||||||||
33 | getRootPane().setDefaultButton(okButton); | 45 | getRootPane().setDefaultButton(okButton); | |||||||||||
34 | getRootPane().registerKeyboardAction(this, "CANCEL", KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); |
| 46 | getRootPane().registerKeyboardAction(this, "CLOSE", KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); |
Row | Violation |
---|