GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0); c.anchor = GridBagConstraints.WEST; statementSeparatorLabel = new JLabel(i18n.STMT_SEP_LABEL); statementSeparatorLabel.setHorizontalAlignment(JLabel.LEFT); statementSeparatorLabel.setToolTipText(i18n.STMT_SEP_LABEL_TT); panel.add(statementSeparatorLabel, c);
GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0); c.anchor = GridBagConstraints.WEST; lineCommentLabel = new JLabel(i18n.LINE_COMMENT_LABEL); lineCommentLabel.setHorizontalAlignment(JLabel.LEFT); lineCommentLabel.setToolTipText(i18n.LINE_COMMENT_LABEL_TT); panel.add(lineCommentLabel, c);
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/gui/PluginQueryTokenizerPreferencesPanel.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/gui/PluginQueryTokenizerPreferencesPanel.java
Method name: void addStatementSeparatorLabel(JPanel, int, int) Method name: void addLineCommentLabel(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.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0);
5
		c.anchor = GridBagConstraints.WEST;
5
		c.anchor = GridBagConstraints.WEST;
6
		statementSeparatorLabel = new JLabel(i18n.STMT_SEP_LABEL);
6
		lineCommentLabel = new JLabel(i18n.
7
		statementSeparator
7
LINE_COMMENT_LABEL);
8
Label.setHorizontalAlignment(JLabel.LEFT);
8
		lineCommentLabel.setHorizontalAlignment(JLabel.LEFT);
9
		statementSeparatorLabel.setToolTipText(i18n.STMT_SEP_LABEL_TT);
9
		lineCommentLabel.setToolTipText(i18n.LINE_COMMENT_LABEL_TT);
10
		panel.add(statementSeparatorLabel, c);
10
		panel.add(lineCommentLabel, c);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons40
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements9
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 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.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0);
    4
    c.insets = new Insets(5, LEFT_INDENT_INSET_SIZE, 0, 0);
    5
    c.anchor = GridBagConstraints.WEST;
    5
    c.anchor = GridBagConstraints.WEST;
    6
    statementSeparatorLabel = new JLabel(i18n.STMT_SEP_LABEL);
    6
    statementSeparatorLabel = new JLabel(i18n.STMT_SEP_LABEL);
    6
    lineCommentLabel = new JLabel(i18n.LINE_COMMENT_LABEL);
    Differences
    Expression1Expression2Difference
    statementSeparatorLabellineCommentLabelVARIABLE_NAME_MISMATCH
    STMT_SEP_LABELLINE_COMMENT_LABELVARIABLE_NAME_MISMATCH
    6
    lineCommentLabel = new JLabel(i18n.LINE_COMMENT_LABEL);
    7
    statementSeparatorLabel.setHorizontalAlignment(JLabel.LEFT);
    7
    statementSeparatorLabel.setHorizontalAlignment(JLabel.LEFT);
    7
    lineCommentLabel.setHorizontalAlignment(JLabel.LEFT);
    Differences
    Expression1Expression2Difference
    statementSeparatorLabellineCommentLabelVARIABLE_NAME_MISMATCH
    7
    lineCommentLabel.setHorizontalAlignment(JLabel.LEFT);
    8
    statementSeparatorLabel.setToolTipText(i18n.STMT_SEP_LABEL_TT);
    8
    statementSeparatorLabel.setToolTipText(i18n.STMT_SEP_LABEL_TT);
    8
    lineCommentLabel.setToolTipText(i18n.LINE_COMMENT_LABEL_TT);
    Differences
    Expression1Expression2Difference
    STMT_SEP_LABEL_TTLINE_COMMENT_LABEL_TTVARIABLE_NAME_MISMATCH
    statementSeparatorLabellineCommentLabelVARIABLE_NAME_MISMATCH
    8
    lineCommentLabel.setToolTipText(i18n.LINE_COMMENT_LABEL_TT);
    9
    panel.add(statementSeparatorLabel, c);
    9
    panel.add(statementSeparatorLabel, c);
    9
    panel.add(lineCommentLabel, c);
    Differences
    Expression1Expression2Difference
    statementSeparatorLabellineCommentLabelVARIABLE_NAME_MISMATCH
    9
    panel.add(lineCommentLabel, c);
    Precondition Violations (0)
    Row Violation