if (data != _fileOpenInSpecifiedDir) { final boolean oldValue = _fileOpenInSpecifiedDir; _fileOpenInSpecifiedDir = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.FILE_OPEN_IN_SPECIFIED_DIR, oldValue, _fileOpenInSpecifiedDir); }
if (data != _showPluginFilesInSplashScreen) { final boolean oldValue = _showPluginFilesInSplashScreen; _showPluginFilesInSplashScreen = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.SHOW_PLUGIN_FILES_IN_SPLASH_SCREEN, oldValue, _showPluginFilesInSplashScreen); }
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SquirrelPreferences.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SquirrelPreferences.java
Method name: void setFileOpenInSpecifiedDir(boolean) Method name: void setShowPluginFilesInSplashScreen(boolean)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (data != _fileOpenInSpecifiedDir)
1
if (data != _showPluginFilesInSplashScreen)
2
      {
2
      
3
  {
3
         final boolean oldValue = _fileOpenInSpecifiedDir;
4
            final boolean oldValue = _
4
         _fileOpenInSpecifiedDir
5
showPluginFilesInSplashScreen;
5
 = data;
6
            _showPluginFilesInSplashScreen = data;
6
         getPropertyChangeReporter().firePropertyChange(
7
            getPropertyChangeReporter().firePropertyChange(
7
                              IPropertyNames.FILE_OPEN_IN_SPECIFIED_DIR,
8
                            IPropertyNames.
8
  
9
SHOW_PLUGIN_FILES_IN_SPLASH_SCREEN,
9
                            oldValue, _fileOpenInSpecifiedDir
10
                            oldValue, 
10
);
11
                            _showPluginFilesInSplashScreen);
11
      }
12
        }
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.1
Clones locationClones are declared in the same class
Number of node comparisons16
  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)1.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (data != _fileOpenInSpecifiedDir)
    1
    if (data != _fileOpenInSpecifiedDir)
    1
    if (data != _showPluginFilesInSplashScreen)
    Differences
    Expression1Expression2Difference
    _fileOpenInSpecifiedDir_showPluginFilesInSplashScreenVARIABLE_NAME_MISMATCH
    1
    if (data != _showPluginFilesInSplashScreen)
    2
    final boolean oldValue = _fileOpenInSpecifiedDir;
    2
    final boolean oldValue = _fileOpenInSpecifiedDir;
    2
    final boolean oldValue = _showPluginFilesInSplashScreen;
    Differences
    Expression1Expression2Difference
    _fileOpenInSpecifiedDir_showPluginFilesInSplashScreenVARIABLE_NAME_MISMATCH
    2
    final boolean oldValue = _showPluginFilesInSplashScreen;
    3
    _fileOpenInSpecifiedDir = data;
    3
    _fileOpenInSpecifiedDir = data;
    3
    _showPluginFilesInSplashScreen = data;
    Differences
    Expression1Expression2Difference
    _fileOpenInSpecifiedDir_showPluginFilesInSplashScreenVARIABLE_NAME_MISMATCH
    3
    _showPluginFilesInSplashScreen = data;
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.FILE_OPEN_IN_SPECIFIED_DIR, oldValue, _fileOpenInSpecifiedDir);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.FILE_OPEN_IN_SPECIFIED_DIR, oldValue, _fileOpenInSpecifiedDir);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_PLUGIN_FILES_IN_SPLASH_SCREEN, oldValue, _showPluginFilesInSplashScreen);
    Differences
    Expression1Expression2Difference
    FILE_OPEN_IN_SPECIFIED_DIRSHOW_PLUGIN_FILES_IN_SPLASH_SCREENVARIABLE_NAME_MISMATCH
    _fileOpenInSpecifiedDir_showPluginFilesInSplashScreenVARIABLE_NAME_MISMATCH
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_PLUGIN_FILES_IN_SPLASH_SCREEN, oldValue, _showPluginFilesInSplashScreen);
    Precondition Violations (0)
    Row Violation