c.gridx++;
c.anchor = GridBagConstraints.WEST;
c.weightx = 1;
c.weighty = 1;
c.fill = GridBagConstraints.HORIZONTAL;
return c;
c.gridx++;
c.anchor = GridBagConstraints.WEST;
c.weightx = 1;
c.weighty = 1;
c.fill = GridBagConstraints.NONE;
return c;
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnDetailDialog.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/gui/UpdateManagerDialog.java
|
Method name: GridBagConstraints getFieldConstraints(GridBagConstraints)
|
|
Method name: GridBagConstraints getFieldConstraints(GridBagConstraints)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | c.gridx++;↵ | | 1 | c.gridx++;↵
|
2 | c.anchor = GridBagConstraints.WEST; ↵ | | 2 | c.anchor = GridBagConstraints.WEST;↵
|
3 | ↵ | | |
|
4 | c.weightx = 1;↵ | | 3 | c.weightx = 1;↵
|
5 | c.weighty = 1;↵ | | 4 | c.weighty = 1;↵
|
6 | c.fill = GridBagConstraints.HORIZONTAL;↵ | | 5 | c.fill = GridBagConstraints.↵
|
7 | ↵ | | 6 | NONE;↵
|
8 | return c; | | 7 | return c;
|
See real code fragment |
|
See real code fragment |
Summary
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 | 36 |
-
{Refactorable}
Mapping Summary
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 2 |
Mapped Statements
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 | return c; | | 6 | return c; |
Precondition Violations (0)
Row |
Violation |