final boolean oldValue = _showDriversToolBar; _showDriversToolBar = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_DRIVERS_TOOL_BAR, oldValue, _showDriversToolBar);
final int oldValue = _jdbcDebugType; _jdbcDebugType = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.JDBC_DEBUG_TYPE, oldValue, _jdbcDebugType);
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 setShowDriversToolBar(boolean) Method name: void setJdbcDebugType(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
final boolean oldValue = _showDriversToolBar;
1
final int oldValue = _
2
			_showDriversToolBar
2
jdbcDebugType;
3
 = data;
3
			_jdbcDebugType = data;
4
			getPropertyChangeReporter().firePropertyChange(
4
			getPropertyChangeReporter().firePropertyChange(
5
IPropertyNames.SHOW_DRIVERS_TOOL_BAR,
5
					IPropertyNames.
6
												oldValue, _showDriversToolBar);
6
JDBC_DEBUG_TYPE, oldValue, _jdbcDebugType);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    final boolean oldValue = _showDriversToolBar;
                                                                                                
    3
    _showDriversToolBar = data;
    3
    _showDriversToolBar = data;
    Preondition Violations
    Unmatched statement _showDriversToolBar=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                            
                                                                              
    4
    final int oldValue = _jdbcDebugType;
                                                  
    5
    _jdbcDebugType = data;
    Preondition Violations
    Unmatched statement _jdbcDebugType=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5
    _jdbcDebugType = data;
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_DRIVERS_TOOL_BAR, oldValue, _showDriversToolBar);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_DRIVERS_TOOL_BAR, oldValue, _showDriversToolBar);
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.JDBC_DEBUG_TYPE, oldValue, _jdbcDebugType);
    Differences
    Expression1Expression2Difference
    SHOW_DRIVERS_TOOL_BARJDBC_DEBUG_TYPEVARIABLE_NAME_MISMATCH
    booleanintVARIABLE_TYPE_MISMATCH
    _showDriversToolBar_jdbcDebugTypeVARIABLE_NAME_MISMATCH
    booleanintVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type boolean of variable oldValue does not match with type int of variable oldValue
    Type boolean of variable _showDriversToolBar does not match with type int of variable _jdbcDebugType
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.JDBC_DEBUG_TYPE, oldValue, _jdbcDebugType);
    Precondition Violations (4)
    Row Violation
    1Unmatched statement _showDriversToolBar=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement _jdbcDebugType=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Type boolean of variable oldValue does not match with type int of variable oldValue
    4Type boolean of variable _showDriversToolBar does not match with type int of variable _jdbcDebugType