JPanel jpanel1 = new JPanel(); jpanel1.setName("panelButton"); FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); CellConstraints cc = new CellConstraints(); jpanel1.setLayout(formlayout1); btnStart.setActionCommand("Start"); btnStart.setName("btnStart"); btnStart.setText("Start"); jpanel1.add(btnStart, cc.xy(1, 1)); btnStop.setActionCommand("Stop"); btnStop.setName("btnStop"); btnStop.setText("Stop"); jpanel1.add(btnStop, cc.xy(1, 3)); return jpanel1;
JPanel panelButton = new JPanel(); panelButton.setName("panelButton"); FormLayout formlayout1 = new FormLayout( "FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); CellConstraints cc = new CellConstraints(); panelButton.setLayout(formlayout1); btnStart.setActionCommand("Start"); btnStart.setName("btnStart"); btnStart.setText("Start"); panelButton.add(btnStart, cc.xy(1, 1)); btnStop.setActionCommand("Stop"); btnStop.setName("btnStop"); btnStop.setText("Stop"); panelButton.add(btnStop, cc.xy(1, 3)); return panelButton;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolFindBadNullValuesFrame.java File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolMissingIndicesFrame.java
Method name: JPanel createPanelButton() Method name: JPanel createpanelButton()
Number of AST nodes: 14 Number of AST nodes: 14
1
JPanel jpanel1 = new JPanel();
1
JPanel panelButton = new JPanel();
2
		jpanel1.setName("panelButton");
2
		panelButton.setName("panelButton");
3
		FormLayout formlayout1 = new FormLayout(
3
		FormLayout formlayout1 = new FormLayout(
4
"FILL:DEFAULT:NONE",
4
		   "FILL:DEFAULT:NONE",
5
				"CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
5
 "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
6
		CellConstraints cc = new CellConstraints();
6
		CellConstraints cc = new CellConstraints();
7
		jpanel1.setLayout(formlayout1);
7
		panelButton.setLayout(formlayout1);
8
		btnStart.setActionCommand("Start");
8
		btnStart.setActionCommand("Start");
9
		btnStart.setName("btnStart");
9
		btnStart.setName("btnStart");
10
		btnStart.setText("Start");
10
		btnStart.setText("Start");
11
		jpanel1.add(btnStart, cc.xy(1, 1));
11
		panelButton.add(btnStart, cc.xy(1, 1));
12
		btnStop.setActionCommand("Stop");
12
		btnStop.setActionCommand("Stop");
13
		btnStop.setName("btnStop");
13
		btnStop.setName("btnStop");
14
		btnStop.setText("Stop");
14
		btnStop.setText("Stop");
15
		jpanel1.add(btnStop, cc.xy(1, 3));
15
		panelButton.add(btnStop, cc.xy(1, 3));
16
		return jpanel1;
16
		return panelButton;
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 comparisons127
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements14
    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 jpanel1 = new JPanel();
    1
    JPanel jpanel1 = new JPanel();
    1
    JPanel panelButton = new JPanel();
    Differences
    Expression1Expression2Difference
    jpanel1panelButtonVARIABLE_NAME_MISMATCH
    1
    JPanel panelButton = new JPanel();
    2
    jpanel1.setName("panelButton");
    2
    jpanel1.setName("panelButton");
    2
    panelButton.setName("panelButton");
    Differences
    Expression1Expression2Difference
    jpanel1panelButtonVARIABLE_NAME_MISMATCH
    2
    panelButton.setName("panelButton");
    3
    FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
    3
    FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
    4
    CellConstraints cc = new CellConstraints();
    4
    CellConstraints cc = new CellConstraints();
    5
    jpanel1.setLayout(formlayout1);
    5
    jpanel1.setLayout(formlayout1);
    5
    panelButton.setLayout(formlayout1);
    Differences
    Expression1Expression2Difference
    jpanel1panelButtonVARIABLE_NAME_MISMATCH
    5
    panelButton.setLayout(formlayout1);
    6
    btnStart.setActionCommand("Start");
    6
    btnStart.setActionCommand("Start");
    7
    btnStart.setName("btnStart");
    7
    btnStart.setName("btnStart");
    8
    btnStart.setText("Start");
    8
    btnStart.setText("Start");
    9
    jpanel1.add(btnStart, cc.xy(1, 1));
    9
    jpanel1.add(btnStart, cc.xy(1, 1));
    9
    panelButton.add(btnStart, cc.xy(1, 1));
    Differences
    Expression1Expression2Difference
    jpanel1panelButtonVARIABLE_NAME_MISMATCH
    9
    panelButton.add(btnStart, cc.xy(1, 1));
    10
    btnStop.setActionCommand("Stop");
    10
    btnStop.setActionCommand("Stop");
    11
    btnStop.setName("btnStop");
    11
    btnStop.setName("btnStop");
    12
    btnStop.setText("Stop");
    12
    btnStop.setText("Stop");
    13
    jpanel1.add(btnStop, cc.xy(1, 3));
    13
    jpanel1.add(btnStop, cc.xy(1, 3));
    13
    panelButton.add(btnStop, cc.xy(1, 3));
    Differences
    Expression1Expression2Difference
    jpanel1panelButtonVARIABLE_NAME_MISMATCH
    13
    panelButton.add(btnStop, cc.xy(1, 3));
    14
    return jpanel1;
    14
    return jpanel1;
    14
    return panelButton;
    Differences
    Expression1Expression2Difference
    jpanel1panelButtonVARIABLE_NAME_MISMATCH
    14
    return panelButton;
    Precondition Violations (0)
    Row Violation