JPanel panel = new JPanel(); FormLayout formlayout1 = new FormLayout( "FILL:DEFAULT:NONE,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE"); CellConstraints cc = new CellConstraints(); panel.setLayout(formlayout1); rMaxOccurrences.setText("Maximum recurrences"); rMaxOccurrences.setActionCommand("maximum");
JPanel panel = new JPanel(); FormLayout formlayout1 = new FormLayout( "FILL:DEFAULT:NONE,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE"); CellConstraints cc = new CellConstraints(); panel.setLayout(formlayout1); rUntilDate.setText("Until "); rUntilDate.setActionCommand("until");
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/RecurrenceDialog.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/RecurrenceDialog.java
Method name: JPanel createMaxOccurrencesPanel() Method name: JPanel createUntilDatePanel()
Number of AST nodes: 6 Number of AST nodes: 6
1
JPanel panel = new JPanel();
1
JPanel panel = new JPanel();
2
		FormLayout formlayout1 = new FormLayout(
2
		FormLayout formlayout1 = new FormLayout(
3
				"FILL:DEFAULT:NONE,FILL:DEFAULT:NONE",
3
				"FILL:DEFAULT:NONE,FILL:DEFAULT:NONE",
4
				"CENTER:DEFAULT:NONE");
4
				"CENTER:DEFAULT:NONE");
5
		CellConstraints cc = new CellConstraints();
5
		CellConstraints cc = new CellConstraints();
6
		panel.setLayout(formlayout1);
6
		panel.setLayout(formlayout1);
7
		rMaxOccurrences.setText("Maximum recurrences");
7
		r
8
		rMaxOccurrences
8
UntilDate.setText("Until ");
9
.setActionCommand("maximum");
9
		rUntilDate.setActionCommand("until");
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 declared in the same class
Number of node comparisons15
  1. {Non-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
    1
    JPanel panel = new JPanel();
    1
    JPanel panel = new JPanel();
    2
    FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE");
    2
    FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE");
    3
    CellConstraints cc = new CellConstraints();
    3
    CellConstraints cc = new CellConstraints();
    4
    panel.setLayout(formlayout1);
    4
    panel.setLayout(formlayout1);
    5
    rMaxOccurrences.setText("Maximum recurrences");
    5
    rMaxOccurrences.setText("Maximum recurrences");
    5
    rUntilDate.setText("Until ");
    Differences
    Expression1Expression2Difference
    "Maximum recurrences""Until "LITERAL_VALUE_MISMATCH
    rMaxOccurrencesrUntilDateVARIABLE_NAME_MISMATCH
    5
    rUntilDate.setText("Until ");
    6
    rMaxOccurrences.setActionCommand("maximum");
    6
    rMaxOccurrences.setActionCommand("maximum");
    6
    rUntilDate.setActionCommand("until");
    Differences
    Expression1Expression2Difference
    "maximum""until"LITERAL_VALUE_MISMATCH
    rMaxOccurrencesrUntilDateVARIABLE_NAME_MISMATCH
    6
    rUntilDate.setActionCommand("until");
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables panel, cc , while Clone fragment #2 returns variables panel, cc