c.gridwidth = 1; mailerPanel.add(new JLabel("From:")); fromField = new JTextField(25); fromField.setEditable(true); c.gridwidth = GridBagConstraints.REMAINDER; g.setConstraints(fromField, c); mailerPanel.add(fromField);
c.gridwidth = 1; mailerPanel.add(new JLabel("Failures:")); failureField = new JTextField(6); failureField.setEditable(false); c.gridwidth = GridBagConstraints.REMAINDER; g.setConstraints(failureField, c); mailerPanel.add(failureField);
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: 7 Number of AST nodes: 7
1
c.gridwidth = 1;
1
c.gridwidth = 1;
2
		mailerPanel.add(new JLabel("From:"));
2
		mailerPanel.add(new JLabel("Failures:"));
3
		fromField = new JTextField(25);
3
		failureField = new JTextField(6);
4
		fromField.setEditable(true);
4
		failureField.setEditable(false);
5
		c.gridwidth = GridBagConstraints.REMAINDER;
5
		c.gridwidth = GridBagConstraints.REMAINDER;
6
		g.setConstraints(fromField, c);
6
		g.setConstraints(failureField, c);
7
		mailerPanel.add(fromField);
7
		mailerPanel.add(failureField);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons37
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    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
    13
    c.gridwidth = 1;
    70
    c.gridwidth = 1;
    14
    mailerPanel.add(new JLabel("From:"));
    14
    mailerPanel.add(new JLabel("From:"));
    71
    mailerPanel.add(new JLabel("Failures:"));
    Differences
    Expression1Expression2Difference
    "From:""Failures:"LITERAL_VALUE_MISMATCH
    71
    mailerPanel.add(new JLabel("Failures:"));
    15
    fromField = new JTextField(25);
    15
    fromField = new JTextField(25);
    72
    failureField = new JTextField(6);
    Differences
    Expression1Expression2Difference
    fromFieldfailureFieldVARIABLE_NAME_MISMATCH
    256LITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression fromField is a field being modified, and thus it cannot be parameterized
    Expression failureField is a field being modified, and thus it cannot be parameterized
    72
    failureField = new JTextField(6);
    16
    fromField.setEditable(true);
    16
    fromField.setEditable(true);
    73
    failureField.setEditable(false);
    Differences
    Expression1Expression2Difference
    truefalseLITERAL_VALUE_MISMATCH
    fromFieldfailureFieldVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression fromField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression failureField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    73
    failureField.setEditable(false);
    17
    c.gridwidth = GridBagConstraints.REMAINDER;
    74
    c.gridwidth = GridBagConstraints.REMAINDER;
    18
    g.setConstraints(fromField, c);
    18
    g.setConstraints(fromField, c);
    75
    g.setConstraints(failureField, c);
    Differences
    Expression1Expression2Difference
    fromFieldfailureFieldVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression fromField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression failureField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    75
    g.setConstraints(failureField, c);
    19
    mailerPanel.add(fromField);
    19
    mailerPanel.add(fromField);
    76
    mailerPanel.add(failureField);
    Differences
    Expression1Expression2Difference
    fromFieldfailureFieldVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression fromField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression failureField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    76
    mailerPanel.add(failureField);
    Precondition Violations (8)
    Row Violation
    1Expression fromField is a field being modified, and thus it cannot be parameterized
    2Expression failureField is a field being modified, and thus it cannot be parameterized
    3Expression fromField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression failureField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression fromField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression failureField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression fromField cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression failureField cannot be parameterized, because it has dependencies to/from statements that will be extracted