panel6.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec .decodeSpecs("fill:default"))); // ---- calendarTextField ---- calendarTextField.setColumns(20); panel6.add(calendarTextField, cc.xy(1, 1)); // ---- calendarButton ---- panel6.add(calendarButton, cc.xy(3, 1));
panel5.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec .decodeSpecs("fill:default"))); // ---- weblogTextField ---- weblogTextField.setColumns(20); panel5.add(weblogTextField, cc.xy(1, 1)); // ---- weblogButton ---- panel5.add(weblogButton, cc.xy(3, 1));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java
Method name: void layoutComponents() Method name: void layoutComponents()
Number of AST nodes: 4 Number of AST nodes: 4
1
panel6.setLayout(new FormLayout(new ColumnSpec[] {
1
panel5.setLayout(new FormLayout(new ColumnSpec[] {
2
									new ColumnSpec(ColumnSpec.FILL,
2
									new ColumnSpec(ColumnSpec.FILL,
3
											Sizes.DEFAULT,
3
											Sizes.DEFAULT,
4
											FormSpec.DEFAULT_GROW),
4
											FormSpec.DEFAULT_GROW),
5
									FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
5
									FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
6
									FormFactory.DEFAULT_COLSPEC }, RowSpec
6
									FormFactory.DEFAULT_COLSPEC }, RowSpec
7
									.decodeSpecs("fill:default")));
7
									.decodeSpecs("fill:default")));
8
							// ---- calendarTextField ----
8
							// ---- weblogTextField ----
9
							calendarTextField.setColumns(20);
9
							weblogTextField.setColumns(20);
10
							panel6.add(calendarTextField, cc.xy(1, 1));
10
							panel5.add(weblogTextField, cc.xy(1, 1));
11
							// ---- calendarButton ----
11
							// ---- weblogButton ----
12
							panel6.add(calendarButton, cc.xy(3, 1));
12
							panel5.add(weblogButton, cc.xy(3, 1));
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 comparisons16
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    96
    panel6.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default")));
    96
    panel6.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default")));
    88
    panel5.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default")));
    Differences
    Expression1Expression2Difference
    panel6panel5VARIABLE_NAME_MISMATCH
    88
    panel5.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default")));
    97
    calendarTextField.setColumns(20);
    97
    calendarTextField.setColumns(20);
    89
    weblogTextField.setColumns(20);
    Differences
    Expression1Expression2Difference
    calendarTextFieldweblogTextFieldVARIABLE_NAME_MISMATCH
    89
    weblogTextField.setColumns(20);
    98
    panel6.add(calendarTextField, cc.xy(1, 1));
    98
    panel6.add(calendarTextField, cc.xy(1, 1));
    90
    panel5.add(weblogTextField, cc.xy(1, 1));
    Differences
    Expression1Expression2Difference
    calendarTextFieldweblogTextFieldVARIABLE_NAME_MISMATCH
    panel6panel5VARIABLE_NAME_MISMATCH
    90
    panel5.add(weblogTextField, cc.xy(1, 1));
    99
    panel6.add(calendarButton, cc.xy(3, 1));
    99
    panel6.add(calendarButton, cc.xy(3, 1));
    91
    panel5.add(weblogButton, cc.xy(3, 1));
    Differences
    Expression1Expression2Difference
    calendarButtonweblogButtonVARIABLE_NAME_MISMATCH
    panel6panel5VARIABLE_NAME_MISMATCH
    91
    panel5.add(weblogButton, cc.xy(3, 1));
    Precondition Violations (0)
    Row Violation