File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountlist/AccountListDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/ConfigFrame.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(addButton, c);↵ | 13 | gridBagLayout.setConstraints(addButton, c);↵ | |
14 | eastPanel.add(addButton);↵ | 14 | eastPanel.add(addButton);↵ | |
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(editButton, c);↵ | 18 | gridBagLayout.setConstraints(editButton, c);↵ | |
19 | eastPanel.add(editButton); | 19 |
| |
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(); | 47 | Component glue = Box.createVerticalGlue(); | |||||||||||
33 | c.anchor = GridBagConstraints.EAST; | 48 | c.anchor = GridBagConstraints.EAST; | |||||||||||
34 | c.gridwidth = GridBagConstraints.REMAINDER; | 49 | c.gridwidth = GridBagConstraints.REMAINDER; | |||||||||||
35 | gridBagLayout.setConstraints(glue, c); | 50 | gridBagLayout.setConstraints(glue, c); | |||||||||||
36 | gridBagLayout = new GridBagLayout(); | 51 | gridBagLayout = new GridBagLayout(); | |||||||||||
37 | c = new GridBagConstraints(); | 52 | c = new GridBagConstraints(); | |||||||||||
38 | JPanel eastPanel = new JPanel(gridBagLayout); | 53 | JPanel eastPanel = new JPanel(gridBagLayout); | |||||||||||
39 | mainPanel.add(eastPanel, BorderLayout.EAST); | 54 | mainPanel.add(eastPanel, BorderLayout.EAST); | |||||||||||
40 | c.fill = GridBagConstraints.HORIZONTAL; | 55 | c.fill = GridBagConstraints.HORIZONTAL; | |||||||||||
41 | c.weightx = 1.0; | 56 | c.weightx = 1.0; | |||||||||||
42 | c.gridwidth = GridBagConstraints.REMAINDER; | 49 | c.gridwidth = GridBagConstraints.REMAINDER; | |||||||||||
| 57 | c.gridwidth = GridBagConstraints.REMAINDER; | ||||||||||||
43 | gridBagLayout.setConstraints(addButton, c); | 58 | gridBagLayout.setConstraints(addButton, c); | |||||||||||
44 | eastPanel.add(addButton); | 59 | eastPanel.add(addButton); | |||||||||||
45 | Component strut1 = Box.createRigidArea(new Dimension(30, 5)); |
| 60 | Component strut1 = Box.createRigidArea(new Dimension(30, 6)); | ||||||||||
46 | gridBagLayout.setConstraints(strut1, c); | 61 | gridBagLayout.setConstraints(strut1, c); | |||||||||||
47 | eastPanel.add(strut1); | 62 | eastPanel.add(strut1); | |||||||||||
48 | gridBagLayout.setConstraints(editButton, c); | 63 | gridBagLayout.setConstraints(editButton, c); | |||||||||||
49 | eastPanel.add(editButton); | 64 | eastPanel.add(editButton); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables gridBagLayout, c, eastPanel, glue , while Clone fragment #2 returns variables c, gridBagLayout, eastPanel, glue |