IGlobalPreferencesPanel pnl = it.next(); String pnlTitle = pnl.getTitle(); String hint = pnl.getHint(); _tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
ISQLFilterPanel pnl = it.next(); String pnlTitle = pnl.getTitle(); String hint = pnl.getHint(); tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/GlobalPreferencesSheet.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/sqlfilter/SQLFilterSheet.java
Method name: void createGUI() Method name: void createGUI()
Number of AST nodes: 4 Number of AST nodes: 4
1
IGlobalPreferencesPanel pnl = it.next();
1
ISQLFilterPanel pnl = it.next();
2
			String pnlTitle = pnl.getTitle();
2
			String pnlTitle = pnl.getTitle();
3
			String hint = pnl.getHint();
3
			String hint = pnl.getHint();
4
			_tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
4
			tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
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 comparisons17
  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
    18
    IGlobalPreferencesPanel pnl = it.next();
    18
    IGlobalPreferencesPanel pnl = it.next();
    22
    ISQLFilterPanel pnl = it.next();
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    22
    ISQLFilterPanel pnl = it.next();
    19
    String pnlTitle = pnl.getTitle();
    19
    String pnlTitle = pnl.getTitle();
    23
    String pnlTitle = pnl.getTitle();
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    23
    String pnlTitle = pnl.getTitle();
    20
    String hint = pnl.getHint();
    20
    String hint = pnl.getHint();
    24
    String hint = pnl.getHint();
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    24
    String hint = pnl.getHint();
    21
    _tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
    21
    _tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
    25
    tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    _tabPanetabPaneVARIABLE_NAME_MISMATCH
    25
    tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
    Precondition Violations (0)
    Row Violation