File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileChooserDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/subscribe/SubscribeDialog.java | |||
Method name: void layoutComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | JPanel topPanel = new JPanel();↵ | 1 | JPanel topPanel = new JPanel();↵ | |
2 | ↵ | |||
3 | topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));↵ | 2 | topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));↵ | |
4 | ↵ | |||
5 | ↵ | |||
6 | GridBagLayout gridBagLayout = new GridBagLayout();↵ | 3 | GridBagLayout gridBagLayout = new GridBagLayout();↵ | |
7 | GridBagConstraints c = new GridBagConstraints();↵ | 4 | GridBagConstraints c = new GridBagConstraints();↵ | |
8 | ↵ | |||
9 | ↵ | |||
10 | //topPanel.setLayout( );↵ | 5 | // topPanel.setLayout( );↵ | |
11 | JPanel topBorderPanel = new JPanel();↵ | 6 | JPanel topBorderPanel = new JPanel();↵ | |
12 | topBorderPanel.setLayout(new BorderLayout()); | 7 | 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 | |
---|---|---|---|---|
3 | JPanel topPanel = new JPanel(); | 17 | JPanel topPanel = new JPanel(); | |
4 | topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS)); | 18 | topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS)); | |
5 | GridBagLayout gridBagLayout = new GridBagLayout(); | 19 | GridBagLayout gridBagLayout = new GridBagLayout(); | |
6 | GridBagConstraints c = new GridBagConstraints(); | 20 | GridBagConstraints c = new GridBagConstraints(); | |
7 | JPanel topBorderPanel = new JPanel(); | 21 | JPanel topBorderPanel = new JPanel(); | |
8 | topBorderPanel.setLayout(new BorderLayout()); | 22 | topBorderPanel.setLayout(new BorderLayout()); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables topPanel, topBorderPanel, c, gridBagLayout , while Clone fragment #2 returns variables c, gridBagLayout |