File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/ProxyPreferencesPanel.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SQLPreferencesPanel.java | |||
Method name: void createUserInterface()
|
Method name: void createUserInterface()
|
|||
Number of AST nodes: 12 | Number of AST nodes: 11 | |||
1 | final GridBagConstraints gbc = new GridBagConstraints();↵ | 1 | final GridBagConstraints gbc = new GridBagConstraints();↵ | |
2 | gbc.fill = GridBagConstraints.HORIZONTAL;↵ | 2 | gbc.fill = GridBagConstraints.HORIZONTAL;↵ | |
3 | gbc.insets = new Insets(4, 4, 4, 4);↵ | 3 | gbc.insets = new Insets(4, 4, 4, 4);↵ | |
4 | gbc.gridx = 0;↵ | 4 | gbc.gridx = 0;↵ | |
5 | gbc.gridy = 0;↵ | 5 | gbc.gridy = 0;↵ | |
6 | gbc.weightx = 1;↵ | 6 | gbc.weightx = 1;↵ | |
7 | add(createHTTPPanel(), gbc);↵ | 7 | add(createGeneralPanel(), gbc);↵ | |
8 | ++gbc.gridy;↵ | 8 | ++gbc.gridy;↵ | |
9 | add(createSOCKSPanel(), gbc);↵ | 9 | add(createDebugPanel(), gbc);↵ | |
10 | final ActionListener lis = new MyActionHandler();↵ | |||
11 | _httpUseProxyChk.addActionListener(lis);↵ | |||
12 | _socksUseProxyChk.addActionListener(lis↵ | 10 | ++gbc.gridy;↵ | |
13 | ); | 11 | add(createFilePanel(), gbc); | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 83 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | final GridBagConstraints gbc = new GridBagConstraints(); | 1 | final GridBagConstraints gbc = new GridBagConstraints(); | |||||||||||
2 | gbc.fill = GridBagConstraints.HORIZONTAL; | 2 | gbc.fill = GridBagConstraints.HORIZONTAL; | |||||||||||
3 | gbc.insets = new Insets(4, 4, 4, 4); | 3 | gbc.insets = new Insets(4, 4, 4, 4); | |||||||||||
4 | gbc.gridx = 0; | 4 | gbc.gridx = 0; | |||||||||||
5 | gbc.gridy = 0; | 5 | gbc.gridy = 0; | |||||||||||
6 | gbc.weightx = 1; | 6 | gbc.weightx = 1; | |||||||||||
7 | add(createHTTPPanel(), gbc); |
| 7 | add(createGeneralPanel(), gbc); | ||||||||||
8 | ++gbc.gridy; | 8 | ++gbc.gridy; | |||||||||||
9 | add(createSOCKSPanel(), gbc); |
| 9 | add(createDebugPanel(), gbc); | ||||||||||
|
| 10 | ++gbc.gridy; | |||||||||||
10 | final ActionListener lis = new MyActionHandler(); | | ||||||||||||
|
| 11 | add(createFilePanel(), gbc); | |||||||||||
11 | _httpUseProxyChk.addActionListener(lis); | | ||||||||||||
12 | _socksUseProxyChk.addActionListener(lis); | |
Row | Violation |
---|---|
1 | Unmatched statement ++gbc.gridy; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement add(createFilePanel(),gbc); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |