super.initComponents(); matchComboBox = new JComboBox(); matchComboBox.addItem("contains"); matchComboBox.addItem("contains not"); /* * matchComboBox.addItem("is"); matchComboBox.addItem("is not"); * matchComboBox.addItem("begins with"); matchComboBox.addItem("ends * with"); */ addComponent(matchComboBox); textField = new JTextField("header", 10); addComponent(textField);
super.initComponents(); matchComboBox = new JComboBox(); matchComboBox.addItem("contains"); matchComboBox.addItem("contains not"); addComponent(matchComboBox); textField = new JTextField("body text", 12); addComponent(textField);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/plugins/HeaderCriteriaRow.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/plugins/BodyCriteriaRow.java
Method name: void initComponents() Method name: void initComponents()
Number of AST nodes: 7 Number of AST nodes: 7
1
super.initComponents();
1
super.initComponents();
2
		matchComboBox = new JComboBox();
2
		matchComboBox = new JComboBox();
3
		matchComboBox.addItem("contains");
3
		matchComboBox.addItem("contains");
4
		matchComboBox.addItem("contains not");
4
		matchComboBox.addItem("contains not");
5
		/*
6
		 * matchComboBox.addItem("is"); matchComboBox.addItem("is not");
7
		 * matchComboBox.addItem("begins with"); matchComboBox.addItem("ends
8
		 * with");
9
		 */
10
		addComponent(matchComboBox);
5
		addComponent(matchComboBox);
11
		textField = new JTextField("header", 10);
6
		textField = new JTextField("body text", 12);
12
		addComponent(textField);
7
		addComponent(textField);
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 different classes having the same super class
Number of node comparisons28
  1. {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
    1
    super.initComponents();
    1
    super.initComponents();
    2
    matchComboBox = new JComboBox();
    2
    matchComboBox = new JComboBox();
    3
    matchComboBox.addItem("contains");
    3
    matchComboBox.addItem("contains");
    4
    matchComboBox.addItem("contains not");
    4
    matchComboBox.addItem("contains not");
    5
    addComponent(matchComboBox);
    5
    addComponent(matchComboBox);
    6
    textField = new JTextField("header", 10);
    6
    textField = new JTextField("header", 10);
    6
    textField = new JTextField("body text", 12);
    Differences
    Expression1Expression2Difference
    "header""body text"LITERAL_VALUE_MISMATCH
    1012LITERAL_VALUE_MISMATCH
    6
    textField = new JTextField("body text", 12);
    7
    addComponent(textField);
    7
    addComponent(textField);
    Precondition Violations (0)
    Row Violation