smtpHostField.setEditable(true); c.gridwidth = GridBagConstraints.REMAINDER; g.setConstraints(smtpHostField, c); mailerPanel.add(smtpHostField); c.gridwidth = 1; mailerPanel.add(new JLabel("Failure Subject:"));
addressField.setEditable(true); c.gridwidth = GridBagConstraints.REMAINDER; g.setConstraints(addressField, c); mailerPanel.add(addressField); c.gridwidth = 1; mailerPanel.add(new JLabel("SMTP Host:"));
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MailerVisualizer.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MailerVisualizer.java
Method name: void initGui() Method name: void initGui()
Number of AST nodes: 6 Number of AST nodes: 6
1
smtpHostField.setEditable(true);
1
addressField.setEditable(true);
2
		c.gridwidth = GridBagConstraints.REMAINDER;
2
		c.gridwidth = GridBagConstraints.REMAINDER;
3
		g.setConstraints(smtpHostField, c);
3
		g.setConstraints(addressField, c);
4
		mailerPanel.add(smtpHostField);
4
		mailerPanel.add(addressField);
5
		c.gridwidth = 1;
5
		c.gridwidth = 1;
6
		mailerPanel.add(new JLabel("Failure Subject:"));
6
		mailerPanel.add(new JLabel("SMTP Host:"));
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 in the same method
Number of node comparisons36
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    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
    32
    smtpHostField.setEditable(true);
    32
    smtpHostField.setEditable(true);
    25
    addressField.setEditable(true);
    Differences
    Expression1Expression2Difference
    smtpHostFieldaddressFieldVARIABLE_NAME_MISMATCH
    25
    addressField.setEditable(true);
    33
    c.gridwidth = GridBagConstraints.REMAINDER;
    26
    c.gridwidth = GridBagConstraints.REMAINDER;
    34
    g.setConstraints(smtpHostField, c);
    34
    g.setConstraints(smtpHostField, c);
    27
    g.setConstraints(addressField, c);
    Differences
    Expression1Expression2Difference
    smtpHostFieldaddressFieldVARIABLE_NAME_MISMATCH
    27
    g.setConstraints(addressField, c);
    35
    mailerPanel.add(smtpHostField);
    35
    mailerPanel.add(smtpHostField);
    28
    mailerPanel.add(addressField);
    Differences
    Expression1Expression2Difference
    smtpHostFieldaddressFieldVARIABLE_NAME_MISMATCH
    28
    mailerPanel.add(addressField);
    36
    c.gridwidth = 1;
    29
    c.gridwidth = 1;
    37
    mailerPanel.add(new JLabel("Failure Subject:"));
    37
    mailerPanel.add(new JLabel("Failure Subject:"));
    30
    mailerPanel.add(new JLabel("SMTP Host:"));
    Differences
    Expression1Expression2Difference
    "Failure Subject:""SMTP Host:"LITERAL_VALUE_MISMATCH
    30
    mailerPanel.add(new JLabel("SMTP Host:"));
    Precondition Violations (0)
    Row Violation