INewSessionPropertiesPanel pnl = it.next(); String winTitle = pnl.getTitle(); String hint = pnl.getHint(); tabPane.addTab(winTitle, 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/NewSessionPropertiesSheet.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
INewSessionPropertiesPanel pnl = it.next();
1
ISQLFilterPanel pnl = it.next();
2
			String winTitle = pnl.getTitle();
2
			String pnlTitle = pnl.getTitle();
3
			String hint = pnl.getHint();
3
			String hint = pnl.getHint();
4
			tabPane.addTab(winTitle, 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
    16
    INewSessionPropertiesPanel pnl = it.next();
    16
    INewSessionPropertiesPanel pnl = it.next();
    22
    ISQLFilterPanel pnl = it.next();
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    22
    ISQLFilterPanel pnl = it.next();
    17
    String winTitle = pnl.getTitle();
    17
    String winTitle = pnl.getTitle();
    23
    String pnlTitle = pnl.getTitle();
    Differences
    Expression1Expression2Difference
    winTitlepnlTitleVARIABLE_NAME_MISMATCH
    net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    23
    String pnlTitle = pnl.getTitle();
    18
    String hint = pnl.getHint();
    18
    String hint = pnl.getHint();
    24
    String hint = pnl.getHint();
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    24
    String hint = pnl.getHint();
    19
    tabPane.addTab(winTitle, null, pnl.getPanelComponent(), hint);
    19
    tabPane.addTab(winTitle, null, pnl.getPanelComponent(), hint);
    25
    tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
    Differences
    Expression1Expression2Difference
    winTitlepnlTitleVARIABLE_NAME_MISMATCH
    net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanelnet.sourceforge.squirrel_sql.client.session.sqlfilter.ISQLFilterPanelSUBCLASS_TYPE_MISMATCH
    25
    tabPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
    Precondition Violations (0)
    Row Violation