if (data != _confirmSessionClose) { final boolean oldValue = _confirmSessionClose; _confirmSessionClose = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.CONFIRM_SESSION_CLOSE, oldValue, _confirmSessionClose); }
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 setConfirmSessionClose(boolean) Method name: void setShowMainStatusBar(boolean)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (data != _confirmSessionClose)
1
if (data != _showMainStatusBar)
2
 		{
2
		{
3
 			final boolean oldValue = _confirmSessionClose;
3
			final boolean oldValue = _showMainStatusBar;
4
 			_confirmSessionClose = data;
4
			_showMainStatusBar = data;
5
 			getPropertyChangeReporter().firePropertyChange(
5
			getPropertyChangeReporter().firePropertyChange(
6
 										IPropertyNames.CONFIRM_SESSION_CLOSE,
6
IPropertyNames.SHOW_MAIN_STATUS_BAR,
7
 										oldValue, _confirmSessionClose);
7
											oldValue, _showMainStatusBar);
8
 		}
8
		}
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 != _confirmSessionClose)
    1
    if (data != _confirmSessionClose)
    1
    if (data != _showMainStatusBar)
    Differences
    Expression1Expression2Difference
    _confirmSessionClose_showMainStatusBarVARIABLE_NAME_MISMATCH
    1
    if (data != _showMainStatusBar)
    2
    final boolean oldValue = _confirmSessionClose;
    2
    final boolean oldValue = _confirmSessionClose;
    2
    final boolean oldValue = _showMainStatusBar;
    Differences
    Expression1Expression2Difference
    _confirmSessionClose_showMainStatusBarVARIABLE_NAME_MISMATCH
    2
    final boolean oldValue = _showMainStatusBar;
    3
    _confirmSessionClose = data;
    3
    _confirmSessionClose = data;
    3
    _showMainStatusBar = data;
    Differences
    Expression1Expression2Difference
    _confirmSessionClose_showMainStatusBarVARIABLE_NAME_MISMATCH
    3
    _showMainStatusBar = data;
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.CONFIRM_SESSION_CLOSE, oldValue, _confirmSessionClose);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.CONFIRM_SESSION_CLOSE, oldValue, _confirmSessionClose);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_MAIN_STATUS_BAR, oldValue, _showMainStatusBar);
    Differences
    Expression1Expression2Difference
    CONFIRM_SESSION_CLOSESHOW_MAIN_STATUS_BARVARIABLE_NAME_MISMATCH
    _confirmSessionClose_showMainStatusBarVARIABLE_NAME_MISMATCH
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_MAIN_STATUS_BAR, oldValue, _showMainStatusBar);
    Precondition Violations (0)
    Row Violation