if (data != _showSessionStartupTimeHint) { final boolean oldValue = _showSessionStartupTimeHint; _showSessionStartupTimeHint = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT, oldValue, _showSessionStartupTimeHint); }
if (data != _showMainStatusBar) { final boolean oldValue = _showMainStatusBar; _showMainStatusBar = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_MAIN_STATUS_BAR, oldValue, _showMainStatusBar); }
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 setShowSessionStartupTimeHint(boolean) Method name: void setShowMainStatusBar(boolean)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (data != _showSessionStartupTimeHint)
1
if (data != _showMainStatu
2
      {
3
         
2
sBar)
3
		{
4
final boolean oldValue = _showSessionStartupTimeHint;
4
			final boolean oldValue = _showMainStatu
5
         _showSessio
5
sBar;
6
nStartupTimeHint = data;
6
			_showMainStatu
7
         
7
sBar = data;
8
getPropertyChangeReporter().firePropertyChange(
8
			getPropertyChangeReporter().firePropertyChange(
9
            IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT,
9
IPropertyNames.SHOW_MAIN_STATU
10
            
10
S_BAR,
11
oldValue, _showSessionStartupTimeHint);
11
											oldValue, _showMainStatu
12
      
12
sBar);
13
}
13
		}
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.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (data != _showSessionStartupTimeHint)
    1
    if (data != _showSessionStartupTimeHint)
    1
    if (data != _showMainStatusBar)
    Differences
    Expression1Expression2Difference
    _showSessionStartupTimeHint_showMainStatusBarVARIABLE_NAME_MISMATCH
    1
    if (data != _showMainStatusBar)
    2
    final boolean oldValue = _showSessionStartupTimeHint;
    2
    final boolean oldValue = _showSessionStartupTimeHint;
    2
    final boolean oldValue = _showMainStatusBar;
    Differences
    Expression1Expression2Difference
    _showSessionStartupTimeHint_showMainStatusBarVARIABLE_NAME_MISMATCH
    2
    final boolean oldValue = _showMainStatusBar;
    3
    _showSessionStartupTimeHint = data;
    3
    _showSessionStartupTimeHint = data;
    3
    _showMainStatusBar = data;
    Differences
    Expression1Expression2Difference
    _showSessionStartupTimeHint_showMainStatusBarVARIABLE_NAME_MISMATCH
    3
    _showMainStatusBar = data;
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT, oldValue, _showSessionStartupTimeHint);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT, oldValue, _showSessionStartupTimeHint);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_MAIN_STATUS_BAR, oldValue, _showMainStatusBar);
    Differences
    Expression1Expression2Difference
    SHOW_SESSION_STARTUP_TIME_HINTSHOW_MAIN_STATUS_BARVARIABLE_NAME_MISMATCH
    _showSessionStartupTimeHint_showMainStatusBarVARIABLE_NAME_MISMATCH
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_MAIN_STATUS_BAR, oldValue, _showMainStatusBar);
    Precondition Violations (0)
    Row Violation