b.append(authenticationLabel, authenticationComboBox, checkAuthMethods); builder.append(panel, 3); builder.nextLine(); builder.append(secureCheckBox, 3); builder.nextLine(); JPanel panel2 = new JPanel(); FormLayout l2 = new FormLayout("default, 3dlu, left:pref", // 2 columns "fill:default:grow"); // rows are added dynamically (no need // to // define them here) // create a form builder DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2); b2.setRowGroupingEnabled(true);
b.append(authenticationLabel, authenticationComboBox, checkAuthMethods); // b.nextLine(); // b.append(loginLabel, loginTextField); builder.append(panel, 5); builder.nextLine(); // builder.setLeadingColumnOffset(1); builder.append(secureCheckBox, 6); builder.nextLine(); JPanel panel2 = new JPanel(); FormLayout l2 = new FormLayout("default, 3dlu, left:pref", // 2 columns "fill:default:grow"); // rows are added dynamically (no need // to // define them here) // create a form builder DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2); b2.setRowGroupingEnabled(true);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/IncomingServerPanel.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/OutgoingServerPanel.java
Method name: void layoutComponents() Method name: void layoutComponents()
Number of AST nodes: 9 Number of AST nodes: 9
1
b.append(authenticationLabel, authenticationComboBox, checkAuthMethods);
1
b.append(authenticationLabel, authenticationComboBox, checkAuthMethods);
2
		
2
		// b.nextLine();
3
		// b.append(loginLabel, loginTextField);
3
builder.append(panel, 3);
4
		builder.append(panel, 5);
4
		builder.nextLine();
5
		builder.nextLine();
6
		// builder.setLeadingColumnOffset(1);
5
		builder.append(secureCheckBox, 3);
7
		builder.append(secureCheckBox, 6);
6
		builder.nextLine();
8
		builder.nextLine();
7
		JPanel panel2 = new JPanel();
9
		JPanel panel2 = new JPanel();
8
		FormLayout l2 = new FormLayout("default, 3dlu, left:pref",
10
		FormLayout l2 = new FormLayout("default, 3dlu, left:pref",
9
		// 2 columns
11
		// 2 columns
10
				"fill:default:grow"); // rows are added dynamically (no need
12
				"fill:default:grow"); // rows are added dynamically (no need
11
		// to
13
										// to
12
		// define them here)
14
		// define them here)
13
		// create a form builder
15
		// create a form builder
14
		DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2);
16
		DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2);
15
		b2.setRowGroupingEnabled(true);
17
		b2.setRowGroupingEnabled(true);
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 different classes having the same super class
Number of node comparisons30
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements9
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    20
    b.append(authenticationLabel, authenticationComboBox, checkAuthMethods);
    24
    b.append(authenticationLabel, authenticationComboBox, checkAuthMethods);
    21
    builder.append(panel, 3);
    21
    builder.append(panel, 3);
    25
    builder.append(panel, 5);
    Differences
    Expression1Expression2Difference
    35LITERAL_VALUE_MISMATCH
    25
    builder.append(panel, 5);
    22
    builder.nextLine();
    26
    builder.nextLine();
    23
    builder.append(secureCheckBox, 3);
    23
    builder.append(secureCheckBox, 3);
    27
    builder.append(secureCheckBox, 6);
    Differences
    Expression1Expression2Difference
    36LITERAL_VALUE_MISMATCH
    27
    builder.append(secureCheckBox, 6);
    24
    builder.nextLine();
    26
    builder.nextLine();
                                                  
    28
    builder.nextLine();
    25
    JPanel panel2 = new JPanel();
    29
    JPanel panel2 = new JPanel();
    26
    FormLayout l2 = new FormLayout("default, 3dlu, left:pref", "fill:default:grow");
    30
    FormLayout l2 = new FormLayout("default, 3dlu, left:pref", "fill:default:grow");
    27
    DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2);
    31
    DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2);
    28
    b2.setRowGroupingEnabled(true);
    32
    b2.setRowGroupingEnabled(true);
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables b2, panel2 , while Clone fragment #2 returns variables panel2