File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/plugin/PluginManagerDialog.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileChooserDialog.java | |||
Method name: void initComponents()
|
Method name: void layoutComponents()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | JPanel topPanel = new JPanel();↵ | 1 | JPanel topPanel = new JPanel();↵ | |
2 | ↵ | 2 | ↵ | |
3 | topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));↵ | 3 | topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));↵ | |
4 | ↵ | 4 | ↵ | |
5 | GridBagLayout gridBagLayout = new GridBagLayout();↵ | 5 | GridBagLayout gridBagLayout = new GridBagLayout();↵ | |
6 | GridBagConstraints c = new GridBagConstraints();↵ | 6 | GridBagConstraints c = new GridBagConstraints();↵ | |
7 | ↵ | 7 | ↵ | |
8 | // topPanel.setLayout( );↵ | 8 | //topPanel.setLayout( );↵ | |
9 | JPanel topBorderPanel = new JPanel();↵ | 9 | JPanel topBorderPanel = new JPanel();↵ | |
10 | topBorderPanel.setLayout(new BorderLayout()); | 10 | topBorderPanel.setLayout(new BorderLayout()); | |
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 | 23 |
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) | 0.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
20 | JPanel topPanel = new JPanel(); | 3 | JPanel topPanel = new JPanel(); | |
21 | topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS)); | 4 | topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS)); | |
22 | GridBagLayout gridBagLayout = new GridBagLayout(); | 5 | GridBagLayout gridBagLayout = new GridBagLayout(); | |
23 | GridBagConstraints c = new GridBagConstraints(); | 6 | GridBagConstraints c = new GridBagConstraints(); | |
24 | JPanel topBorderPanel = new JPanel(); | 7 | JPanel topBorderPanel = new JPanel(); | |
25 | topBorderPanel.setLayout(new BorderLayout()); | 8 | topBorderPanel.setLayout(new BorderLayout()); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables topPanel, topBorderPanel, c, gridBagLayout , while Clone fragment #2 returns variables topPanel, topBorderPanel, c, gridBagLayout |