GridBagConstraints c = new GridBagConstraints();
c.gridx = col;
c.gridy = row;
c.gridwidth = 2; // Span across two columns
c.anchor = GridBagConstraints.WEST;
c.insets = new Insets(5,5,0,0);
readClobsFullyCheckBox.setToolTipText(i18n.READ_DERBY_CLOBS_FULLY_TT);
result.add(readClobsFullyCheckBox, c);
GridBagConstraints c = new GridBagConstraints();
c.gridx = col;
c.gridy = row;
c.gridwidth = 2; // Span across two columns
c.anchor = GridBagConstraints.WEST;
c.insets = new Insets(5, 5, 0, 0);
excludeRecycleBinTablesCheckBox.setToolTipText(i18n.HIDE_RECYCLE_BIN_CB_TT);
result.add(excludeRecycleBinTablesCheckBox, c);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/prefs/DerbyPluginPreferencesPanel.java
|
|
File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/prefs/OraclePluginPreferencesPanel.java
|
Method name: void addReadClobsFullyCheckBox(JPanel, int, int)
|
|
Method name: void addRecycleBinCheckBox(JPanel, int, int)
|
Number of AST nodes: 8
|
|
Number of AST nodes: 8
|
|
1 | GridBagConstraints c = new GridBagConstraints();↵ | | 1 | GridBagConstraints c = new GridBagConstraints();↵
|
2 | c.gridx = col;↵ | | 2 | c.gridx = col;↵
|
3 | c.gridy = row;↵ | | 3 | c.gridy = row;↵
|
4 | c.gridwidth = 2; // Span across two columns↵ | | 4 | c.gridwidth = 2; // Span across two columns↵
|
5 | c.anchor = GridBagConstraints.WEST;↵ | | 5 | c.anchor = GridBagConstraints.WEST;↵
|
6 | c.insets = new Insets(5,5,0,0);↵ | | 6 | c.insets = new Insets(5, 5, 0, 0);↵
|
7 | readClobsFullyCheckBox.setToolTipText(i18n.READ_DERBY_CLOBS_FULLY_TT);↵ | | 7 | excludeRecycleBinTablesCheckBox.setToolTipText(i18n.↵
|
8 | result.add(readClobsFully↵ | | 8 | HIDE_RECYCLE_BIN_CB_TT);↵
|
9 | CheckBox, c); | | 9 | result.add(excludeRecycleBinTablesCheckBox, c);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 40 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 8 |
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 | GridBagConstraints c = new GridBagConstraints(); | | 1 | GridBagConstraints c = new GridBagConstraints(); |
2 | c.gridx = col; | | 2 | c.gridx = col; |
3 | c.gridy = row; | | 3 | c.gridy = row; |
4 | c.gridwidth = 2; | | 4 | c.gridwidth = 2; |
5 | c.anchor = GridBagConstraints.WEST; | | 5 | c.anchor = GridBagConstraints.WEST; |
6 | c.insets = new Insets(5, 5, 0, 0); | | 6 | c.insets = new Insets(5, 5, 0, 0); |
7 | readClobsFullyCheckBox.setToolTipText(i18n.READ_DERBY_CLOBS_FULLY_TT); | | 7 | excludeRecycleBinTablesCheckBox.setToolTipText(i18n.HIDE_RECYCLE_BIN_CB_TT); |
8 | result.add(readClobsFullyCheckBox, c); | | 8 | result.add(excludeRecycleBinTablesCheckBox, c); |
Precondition Violations (1)
Row |
Violation |
1 | Type net.sourceforge.squirrel_sql.plugins.derby.prefs.DerbyPluginPreferencesPanel.i18n does not match with type net.sourceforge.squirrel_sql.plugins.oracle.prefs.OraclePluginPreferencesPanel.i18n |