firebirdManagerPreferences = new PreferencesPanel(PreferencesManager.getGlobalPreferences()); scrollPanePreferences = new JScrollPane(firebirdManagerPreferences); scrollPanePreferences.getVerticalScrollBar().setUnitIncrement(10);
prefs = new PreferencesPanel(PreferencesManager.getPreferences()); myscrolledPanel = new JScrollPane(prefs); myscrolledPanel.getVerticalScrollBar().setUnitIncrement(10);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerGlobalPreferencesTab.java File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/gui/DataImportGlobalPreferencesTab.java
Method name: void FirebirdManagerGlobalPreferencesTab() Method name: void DataImportGlobalPreferencesTab()
Number of AST nodes: 3 Number of AST nodes: 3
1
firebirdManagerPreferences = new PreferencesPanel(PreferencesManager.getGlobalPreferences());
1
prefs = new PreferencesPanel(PreferencesManager.getPreferences());
2
        scrollPanePreferences = new JScrollPane(firebirdManagerPreferences);  
2
        myscrolledPanel = new JScrollPane(prefs);  
3
        scrollPanePreferences.getVerticalScrollBar().setUnitIncrement(10);
3
        myscrolledPanel.getVerticalScrollBar().setUnitIncrement(10);
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
Number of node comparisons7
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                                                                                                          
    1
    prefs = new PreferencesPanel(PreferencesManager.getPreferences());
    Preondition Violations
    Unmatched statement prefs=new PreferencesPanel(PreferencesManager.getPreferences()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    1
    prefs = new PreferencesPanel(PreferencesManager.getPreferences());
    1
    firebirdManagerPreferences = new PreferencesPanel(PreferencesManager.getGlobalPreferences());
    1
    firebirdManagerPreferences = new PreferencesPanel(PreferencesManager.getGlobalPreferences());
    Preondition Violations
    Unmatched statement firebirdManagerPreferences=new PreferencesPanel(PreferencesManager.getGlobalPreferences()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                                                                                                                
    2
    scrollPanePreferences = new JScrollPane(firebirdManagerPreferences);
    2
    scrollPanePreferences = new JScrollPane(firebirdManagerPreferences);
    2
    myscrolledPanel = new JScrollPane(prefs);
    Differences
    Expression1Expression2Difference
    scrollPanePreferencesmyscrolledPanelVARIABLE_NAME_MISMATCH
    firebirdManagerPreferencesprefsVARIABLE_NAME_MISMATCH
    net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.PreferencesPanelnet.sourceforge.squirrel_sql.plugins.dataimport.gui.PreferencesPanelSUBCLASS_TYPE_MISMATCH
    2
    myscrolledPanel = new JScrollPane(prefs);
    3
    scrollPanePreferences.getVerticalScrollBar().setUnitIncrement(10);
    3
    scrollPanePreferences.getVerticalScrollBar().setUnitIncrement(10);
    3
    myscrolledPanel.getVerticalScrollBar().setUnitIncrement(10);
    Differences
    Expression1Expression2Difference
    scrollPanePreferencesmyscrolledPanelVARIABLE_NAME_MISMATCH
    3
    myscrolledPanel.getVerticalScrollBar().setUnitIncrement(10);
    Precondition Violations (2)
    Row Violation
    1Unmatched statement prefs=new PreferencesPanel(PreferencesManager.getPreferences()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement firebirdManagerPreferences=new PreferencesPanel(PreferencesManager.getGlobalPreferences()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted