File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/gui/UpdateManagerDialog.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/gui/UpdateManagerDialog.java | |||
Method name: GridBagConstraints getFieldFillHorizontalConstaints(GridBagConstraints)
|
Method name: GridBagConstraints getFieldConstraints(GridBagConstraints)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 6 | |||
1 | c.gridx++;↵ | 1 | c.gridx++;↵ | |
2 | c.anchor = GridBagConstraints.WEST;↵ | 2 | c.anchor = GridBagConstraints.WEST;↵ | |
3 | c.weightx = 1;↵ | 3 | c.weightx = 1;↵ | |
4 | c.weighty = 1;↵ | 4 | c.weighty = 1;↵ | |
5 | c.fill = GridBagConstraints.HORIZONTAL;↵ | 5 | c.fill = GridBagConstraints.↵ | |
6 | c.insets = new Insets(0, 0, 0, 5);↵ | 6 | NONE;↵ | |
7 | return c; | 7 |
| |
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 declared in the same class |
Number of node comparisons | 42 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | c.gridx++; | 1 | c.gridx++; | |||||||||||
2 | c.anchor = GridBagConstraints.WEST; | 2 | c.anchor = GridBagConstraints.WEST; | |||||||||||
3 | c.weightx = 1; | 3 | c.weightx = 1; | |||||||||||
4 | c.weighty = 1; | 4 | c.weighty = 1; | |||||||||||
5 | c.fill = GridBagConstraints.HORIZONTAL; |
| 5 | c.fill = GridBagConstraints.NONE; | ||||||||||
6 | c.insets = new Insets(0, 0, 0, 5); |
| | |||||||||||
7 | return c; | 6 | return c; |
Row | Violation |
---|---|
1 | Unmatched statement c.insets=new Insets(0,0,0,5); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |