File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/gui/PluginQueryTokenizerPreferencesPanel.java | File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/prefs/OraclePluginPreferencesPanel.java | |||
Method name: void addLineCommentLabel(JPanel, int, int)
|
Method name: void addSessionTimezoneTextField(JPanel, int, int)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
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.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0)↵ | 4 | c.gridwidth = 1;↵ | |
5 | ;↵ | 5 | c.fill = GridBagConstraints.HORIZONTAL;↵ | |
6 | c.anchor = GridBagConstraints.WEST;↵ | 6 | c.anchor = GridBagConstraints.WEST;↵ | |
7 | lineCommentLabel = new JLabel(i18n.LINE_COMMENT_LABEL);↵ | 7 | ↵ | |
8 | lineCommentLabel.setHorizontalAlignment(JLabel.LEFT);↵ | |||
9 | lineCommentLabel↵ | 8 | c.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0);↵ | |
10 | .setToolTipText(i18n.LINE_COMMENT_LABEL_TT);↵ | 9 | sessionTimezone.setToolTipText(i18n.SESSION_TIMEZONE_TT);↵ | |
11 | panel.add(lineCommentLabel, c); | 10 | result.add(sessionTimezone, c); | |
See real code fragment | See real code fragment |
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 | 56 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
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 = 1; | |||||||||||||||||||||
|
| 5 | c.fill = GridBagConstraints.HORIZONTAL; | |||||||||||||||||||||
4 | c.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0); | 7 | c.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0); | |||||||||||||||||||||
5 | c.anchor = GridBagConstraints.WEST; | 6 | c.anchor = GridBagConstraints.WEST; | |||||||||||||||||||||
6 | lineCommentLabel = new JLabel(i18n.LINE_COMMENT_LABEL); |
| | |||||||||||||||||||||
7 | lineCommentLabel.setHorizontalAlignment(JLabel.LEFT); | | ||||||||||||||||||||||
8 | lineCommentLabel.setToolTipText(i18n.LINE_COMMENT_LABEL_TT); |
| 8 | sessionTimezone.setToolTipText(i18n.SESSION_TIMEZONE_TT); | ||||||||||||||||||||
|
| 9 | result.add(sessionTimezone, c); | |||||||||||||||||||||
9 | panel.add(lineCommentLabel, c); |
| |
Row | Violation |
---|---|
1 | Unmatched statement c.gridwidth=1; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement c.fill=GridBagConstraints.HORIZONTAL; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement lineCommentLabel=new JLabel(i18n.LINE_COMMENT_LABEL); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Type net.sourceforge.squirrel_sql.client.plugin.gui.PluginQueryTokenizerPreferencesPanel.i18n does not match with type net.sourceforge.squirrel_sql.plugins.oracle.prefs.OraclePluginPreferencesPanel.i18n |
5 | Unmatched statement result.add(sessionTimezone,c); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement panel.add(lineCommentLabel,c); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |