gbc.gridx = 1;
gbc.gridy = gridy;
gbc.gridwidth = 1;
gbc.weightx = 1;
gbc.insets = FIELD_INSETS;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 0;
gbc.gridy = gridy;
gbc.gridwidth = 2;
gbc.weightx = 1;
gbc.insets = SEP_INSETS;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.anchor = GridBagConstraints.WEST;
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/UpdatePreferencesPanel.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/UpdatePreferencesPanel.java
|
Method name: void setFieldConstraints(GridBagConstraints, int)
|
|
Method name: void setSeparatorConstraints(GridBagConstraints, int)
|
Number of AST nodes: 7
|
|
Number of AST nodes: 7
|
|
1 | gbc.gridx = 1;↵ | | 1 | gbc.gridx = 0;↵
|
2 | gbc.gridy = gridy;↵ | | 2 | gbc.gridy = gridy;↵
|
3 | gbc.gridwidth = 1;↵ | | 3 | gbc.gridwidth = 2;↵
|
4 | gbc.weightx = 1;↵ | | 4 | gbc.weightx = 1;↵
|
5 | gbc.insets = FIELD_INSETS;↵ | | 5 | gbc.insets = SEP_INSETS;↵
|
6 | gbc.fill = GridBagConstraints.HORIZONTAL;↵ | | 6 | gbc.fill = GridBagConstraints.HORIZONTAL;↵
|
7 | gbc.anchor = GridBagConstraints.WEST; | | 7 | gbc.anchor = GridBagConstraints.WEST;
|
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 declared in the same 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 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | gbc.gridx = 1; | | 1 | gbc.gridx = 0; |
2 | gbc.gridy = gridy; | | 2 | gbc.gridy = gridy; |
3 | gbc.gridwidth = 1; | | 3 | gbc.gridwidth = 2; |
4 | gbc.weightx = 1; | | 4 | gbc.weightx = 1; |
5 | gbc.insets = FIELD_INSETS; | | 5 | gbc.insets = SEP_INSETS; |
6 | gbc.fill = GridBagConstraints.HORIZONTAL; | | 6 | gbc.fill = GridBagConstraints.HORIZONTAL; |
7 | gbc.anchor = GridBagConstraints.WEST; | | 7 | gbc.anchor = GridBagConstraints.WEST; |
Precondition Violations (0)
Row |
Violation |