File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/plugin/PluginManagerDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/subscribe/SubscribeDialog.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | Component glue = Box.createVerticalGlue();↵ | 1 | Component glue = Box.createVerticalGlue();↵ | |
2 | c.anchor = GridBagConstraints.EAST;↵ | 2 | c.anchor = GridBagConstraints.EAST;↵ | |
3 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | 3 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | |
4 | // c.fill = GridBagConstraints.HORIZONTAL;↵ | 4 | // c.fill = GridBagConstraints.HORIZONTAL;↵ | |
5 | gridBagLayout.setConstraints(glue, c);↵ | 5 | gridBagLayout.setConstraints(glue, c);↵ | |
6 | gridBagLayout = new GridBagLayout();↵ | 6 | gridBagLayout = new GridBagLayout();↵ | |
7 | c = new GridBagConstraints();↵ | 7 | c = new GridBagConstraints();↵ | |
8 | JPanel eastPanel = new JPanel(gridBagLayout);↵ | 8 | JPanel eastPanel = new JPanel(gridBagLayout);↵ | |
9 | mainPanel.add(eastPanel, BorderLayout.EAST);↵ | 9 | mainPanel.add(eastPanel, BorderLayout.EAST);↵ | |
10 | c.fill = GridBagConstraints.HORIZONTAL;↵ | 10 | c.fill = GridBagConstraints.HORIZONTAL;↵ | |
11 | c.weightx = 1.0;↵ | 11 | c.weightx = 1.0;↵ | |
12 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | 12 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | |
13 | gridBagLayout.setConstraints(installButton, c);↵ | 13 | gridBagLayout.setConstraints(subscribeButton, c);↵ | |
14 | eastPanel.add(installButton);↵ | 14 | eastPanel.add(subscribeButton);↵ | |
15 | Component strut1 = Box.createRigidArea(new Dimension(30, 5));↵ | 15 | Component strut1 = Box.createRigidArea(new Dimension(30, 6));↵ | |
16 | gridBagLayout.setConstraints(strut1, c);↵ | 16 | gridBagLayout.setConstraints(strut1, c);↵ | |
17 | eastPanel.add(strut1);↵ | 17 | eastPanel.add(strut1);↵ | |
18 | gridBagLayout.setConstraints(removeButton, c);↵ | 18 | gridBagLayout.setConstraints(unsubscribeButton, c);↵ | |
19 | eastPanel.add(removeButton); | 19 | eastPanel.add(unsubscribeButton); | |
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 | 176 |
Number of mapped statements | 18 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32 | Component glue = Box.createVerticalGlue(); | 23 | Component glue = Box.createVerticalGlue(); | |||||||||||
33 | c.anchor = GridBagConstraints.EAST; | 24 | c.anchor = GridBagConstraints.EAST; | |||||||||||
| 25 | c.gridwidth = GridBagConstraints.REMAINDER; | ||||||||||||
34 | c.gridwidth = GridBagConstraints.REMAINDER; | 33 | c.gridwidth = GridBagConstraints.REMAINDER; | |||||||||||
35 | gridBagLayout.setConstraints(glue, c); | 26 | gridBagLayout.setConstraints(glue, c); | |||||||||||
36 | gridBagLayout = new GridBagLayout(); | 27 | gridBagLayout = new GridBagLayout(); | |||||||||||
37 | c = new GridBagConstraints(); | 28 | c = new GridBagConstraints(); | |||||||||||
38 | JPanel eastPanel = new JPanel(gridBagLayout); | 29 | JPanel eastPanel = new JPanel(gridBagLayout); | |||||||||||
39 | mainPanel.add(eastPanel, BorderLayout.EAST); | 30 | mainPanel.add(eastPanel, BorderLayout.EAST); | |||||||||||
40 | c.fill = GridBagConstraints.HORIZONTAL; | 31 | c.fill = GridBagConstraints.HORIZONTAL; | |||||||||||
41 | c.weightx = 1.0; | 32 | c.weightx = 1.0; | |||||||||||
42 | c.gridwidth = GridBagConstraints.REMAINDER; | 33 | c.gridwidth = GridBagConstraints.REMAINDER; | |||||||||||
43 | gridBagLayout.setConstraints(installButton, c); |
| 34 | gridBagLayout.setConstraints(subscribeButton, c); | ||||||||||
44 | eastPanel.add(installButton); |
| 35 | eastPanel.add(subscribeButton); | ||||||||||
45 | Component strut1 = Box.createRigidArea(new Dimension(30, 5)); |
| 36 | Component strut1 = Box.createRigidArea(new Dimension(30, 6)); | ||||||||||
46 | gridBagLayout.setConstraints(strut1, c); | 37 | gridBagLayout.setConstraints(strut1, c); | |||||||||||
47 | eastPanel.add(strut1); | 38 | eastPanel.add(strut1); | |||||||||||
48 | gridBagLayout.setConstraints(removeButton, c); |
| 39 | gridBagLayout.setConstraints(unsubscribeButton, c); | ||||||||||
49 | eastPanel.add(removeButton); |
| 40 | eastPanel.add(unsubscribeButton); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables gridBagLayout, c, eastPanel, glue , while Clone fragment #2 returns variables gridBagLayout, c, eastPanel, glue |