c.gridx = 0;
c.gridy++;
c.anchor = GridBagConstraints.NORTHEAST;
c.fill = GridBagConstraints.NONE;
c.weightx = 0;
c.weighty = 0;
return c;
c.gridx = 0;
c.gridy++;
c.anchor = GridBagConstraints.NORTHEAST;
c.fill = GridBagConstraints.NONE;
c.weightx = 0;
c.weighty = 0;
return c;
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnListDialog.java
|
|
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AbstractRefactoringTabbedDialog.java
|
Method name: GridBagConstraints getLabelConstraints(GridBagConstraints)
|
|
Method name: GridBagConstraints getLabelConstraints(GridBagConstraints)
|
Number of AST nodes: 7
|
|
Number of AST nodes: 7
|
|
1 | c.gridx = 0;↵ | | 1 | c.gridx = 0;
↵
|
2 | c.gridy++; ↵ | | 2 | c.gridy++;
↵
|
3 | c.anchor = GridBagConstraints.NORTHEAST;↵ | | 3 | c.anchor = GridBagConstraints.NORTHEAST;
↵
|
4 | c.fill = GridBagConstraints.NONE;↵ | | 4 | c.fill = GridBagConstraints.NONE;
↵
|
5 | c.weightx = 0;↵ | | 5 | c.weightx = 0;
↵
|
6 | c.weighty = 0;↵ | | 6 | c.weighty = 0;
↵
|
7 | 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 | 49 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 7 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | c.gridx = 0; | | 1 | c.gridx = 0; |
2 | c.gridy++; | | 2 | c.gridy++; |
3 | c.anchor = GridBagConstraints.NORTHEAST; | | 3 | c.anchor = GridBagConstraints.NORTHEAST; |
4 | c.fill = GridBagConstraints.NONE; | | 4 | c.fill = GridBagConstraints.NONE; |
5 | c.weightx = 0; | | 5 | c.weightx = 0; |
6 | c.weighty = 0; | | 6 | c.weighty = 0; |
7 | return c; | | 7 | return c; |
Precondition Violations (0)
Row |
Violation |