if (data != _showSessionStartupTimeHint) { final boolean oldValue = _showSessionStartupTimeHint; _showSessionStartupTimeHint = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT, oldValue, _showSessionStartupTimeHint); }
if (data != _showAliasesToolBar) { final boolean oldValue = _showAliasesToolBar; _showAliasesToolBar = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_ALIASES_TOOL_BAR, oldValue, _showAliasesToolBar); }
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 setShowAliasesToolBar(boolean)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (data != _showSessionStartupTimeHint)
1
if (data != _show
2
      {
3
         final boolean oldValue = _showSessionStartupTimeHint;
4
         _showSessionStartupTimeHint = data;
5
         
2
AliasesToolBar)
3
		{
4
			final boolean oldValue = _showAliasesToolBar;
5
			_showAliasesToolBar = data;
6
getPropertyChangeReporter().firePropertyChange(
6
			getPropertyChangeReporter().firePropertyChange(
7
            IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT,
7
IPropertyNames.SHOW_
8
            oldValue, _showSessionStartupTimeHint);
9
      
8
ALIASES_TOOL_BAR,
9
												oldValue, _showAliasesToolBar);
10
}
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.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 != _showSessionStartupTimeHint)
    1
    if (data != _showSessionStartupTimeHint)
    1
    if (data != _showAliasesToolBar)
    Differences
    Expression1Expression2Difference
    _showSessionStartupTimeHint_showAliasesToolBarVARIABLE_NAME_MISMATCH
    1
    if (data != _showAliasesToolBar)
    2
    final boolean oldValue = _showSessionStartupTimeHint;
    2
    final boolean oldValue = _showSessionStartupTimeHint;
    2
    final boolean oldValue = _showAliasesToolBar;
    Differences
    Expression1Expression2Difference
    _showSessionStartupTimeHint_showAliasesToolBarVARIABLE_NAME_MISMATCH
    2
    final boolean oldValue = _showAliasesToolBar;
    3
    _showSessionStartupTimeHint = data;
    3
    _showSessionStartupTimeHint = data;
    3
    _showAliasesToolBar = data;
    Differences
    Expression1Expression2Difference
    _showSessionStartupTimeHint_showAliasesToolBarVARIABLE_NAME_MISMATCH
    3
    _showAliasesToolBar = 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_ALIASES_TOOL_BAR, oldValue, _showAliasesToolBar);
    Differences
    Expression1Expression2Difference
    SHOW_SESSION_STARTUP_TIME_HINTSHOW_ALIASES_TOOL_BARVARIABLE_NAME_MISMATCH
    _showSessionStartupTimeHint_showAliasesToolBarVARIABLE_NAME_MISMATCH
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_ALIASES_TOOL_BAR, oldValue, _showAliasesToolBar);
    Precondition Violations (0)
    Row Violation