GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.ipadx = 40; // Increases component width by 40 pixels c.insets = new Insets(5, 5, 0, 0); c.anchor = GridBagConstraints.WEST; lineCommentTextField = new JTextField(10); lineCommentTextField.setHorizontalAlignment(JTextField.RIGHT); lineCommentTextField.setToolTipText(i18n.LINE_COMMENT_LABEL_TT); panel.add(lineCommentTextField, c);
GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.ipadx = 40; // Increases component width by 20 pixels c.insets = new Insets(5, 5, 0, 0); c.anchor = GridBagConstraints.WEST; procedureSeparatorTextField = new JTextField(10); procedureSeparatorTextField.setHorizontalAlignment(JTextField.RIGHT); procedureSeparatorTextField.setToolTipText(i18n.PROC_SEP_LABEL_TT); panel.add(procedureSeparatorTextField, 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 addLineCommentTextField(JPanel, int, int) Method name: void addProcedureSeparatorTextField(JPanel, int, int)
Number of AST nodes: 10 Number of AST nodes: 10
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.ipadx = 40; // Increases component width by 40 pixels
4
		c.ipadx = 40; // Increases component width by 20 pixels
5
		c.insets = new Insets(5, 5, 0, 0);
5
		c.insets = new Insets(5, 5, 0, 0);
6
		c.anchor = GridBagConstraints.WEST;
6
		c.anchor = GridBagConstraints.WEST;
7
		lineCommentTextField = new JTextField(10);
7
		procedureSeparatorTextField = new JTextField(10);
8
		lineCommentTextField.setHorizontalAlignment(JTextField.RIGHT);
8
		procedureSeparatorTextField.setHorizontalAlignment(JTextField.RIGHT);
9
		lineCommentTextField.setToolTipText(i18n.LINE_COMMENT_LABEL_TT);
9
		procedureSeparatorTextField.setToolTipText(i18n.PROC_SEP_LABEL_TT);
10
		panel.add(lineCommentTextField, c);
10
		panel.add(procedureSeparatorTextField, 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 comparisons52
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements10
    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.ipadx = 40;
    4
    c.ipadx = 40;
    5
    c.insets = new Insets(5, 5, 0, 0);
    5
    c.insets = new Insets(5, 5, 0, 0);
    6
    c.anchor = GridBagConstraints.WEST;
    6
    c.anchor = GridBagConstraints.WEST;
    7
    lineCommentTextField = new JTextField(10);
    7
    lineCommentTextField = new JTextField(10);
    7
    procedureSeparatorTextField = new JTextField(10);
    Differences
    Expression1Expression2Difference
    lineCommentTextFieldprocedureSeparatorTextFieldVARIABLE_NAME_MISMATCH
    7
    procedureSeparatorTextField = new JTextField(10);
    8
    lineCommentTextField.setHorizontalAlignment(JTextField.RIGHT);
    8
    lineCommentTextField.setHorizontalAlignment(JTextField.RIGHT);
    8
    procedureSeparatorTextField.setHorizontalAlignment(JTextField.RIGHT);
    Differences
    Expression1Expression2Difference
    lineCommentTextFieldprocedureSeparatorTextFieldVARIABLE_NAME_MISMATCH
    8
    procedureSeparatorTextField.setHorizontalAlignment(JTextField.RIGHT);
    9
    lineCommentTextField.setToolTipText(i18n.LINE_COMMENT_LABEL_TT);
    9
    lineCommentTextField.setToolTipText(i18n.LINE_COMMENT_LABEL_TT);
    9
    procedureSeparatorTextField.setToolTipText(i18n.PROC_SEP_LABEL_TT);
    Differences
    Expression1Expression2Difference
    LINE_COMMENT_LABEL_TTPROC_SEP_LABEL_TTVARIABLE_NAME_MISMATCH
    lineCommentTextFieldprocedureSeparatorTextFieldVARIABLE_NAME_MISMATCH
    9
    procedureSeparatorTextField.setToolTipText(i18n.PROC_SEP_LABEL_TT);
    10
    panel.add(lineCommentTextField, c);
    10
    panel.add(lineCommentTextField, c);
    10
    panel.add(procedureSeparatorTextField, c);
    Differences
    Expression1Expression2Difference
    lineCommentTextFieldprocedureSeparatorTextFieldVARIABLE_NAME_MISMATCH
    10
    panel.add(procedureSeparatorTextField, c);
    Precondition Violations (0)
    Row Violation