final boolean oldValue = _sqlShareHistory; _sqlShareHistory = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_SHARE_HISTORY, oldValue, _sqlShareHistory);
int oldValue = _sqlResultTabLimit; _sqlResultTabLimit = value; getPropertyChangeReporter().firePropertyChange( IPropertyNames.SQL_RESULT_TAB_LIMIT, oldValue, _sqlResultTabLimit);
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionProperties.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionProperties.java
Method name: void setSQLShareHistory(boolean) Method name: void setSqlResultTabLimit(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
final boolean oldValue = _sqlShareHistory;
1
int oldValue = _sql
2
ResultTabLimit;
2
      _sqlShareHistory = data;
3
         _sql
4
ResultTabLimit = value;
3
      getPropertyChangeReporter().firePropertyChange(
5
         getPropertyChangeReporter().firePropertyChange(
4
IPropertyNames.SQL_SHARE_HISTORY,
6
            IPropertyNames.SQL_
5
                  
7
RESULT_TAB_LIMIT,
6
            oldValue, _sqlShareHistory);
8
            oldValue, _sqlResultTabLimit);
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
    1
    final boolean oldValue = _sqlShareHistory;
                                                                                          
                                                                          
    2
    int oldValue = _sqlResultTabLimit;
    2
    _sqlShareHistory = data;
    2
    _sqlShareHistory = data;
    Preondition Violations
    Unmatched statement _sqlShareHistory=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                      
                                                            
    3
    _sqlResultTabLimit = value;
    Preondition Violations
    Unmatched statement _sqlResultTabLimit=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    _sqlResultTabLimit = value;
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_SHARE_HISTORY, oldValue, _sqlShareHistory);
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_SHARE_HISTORY, oldValue, _sqlShareHistory);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_RESULT_TAB_LIMIT, oldValue, _sqlResultTabLimit);
    Differences
    Expression1Expression2Difference
    SQL_SHARE_HISTORYSQL_RESULT_TAB_LIMITVARIABLE_NAME_MISMATCH
    booleanintVARIABLE_TYPE_MISMATCH
    _sqlShareHistory_sqlResultTabLimitVARIABLE_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 _sqlShareHistory does not match with type int of variable _sqlResultTabLimit
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_RESULT_TAB_LIMIT, oldValue, _sqlResultTabLimit);
    Precondition Violations (4)
    Row Violation
    1Unmatched statement _sqlShareHistory=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement _sqlResultTabLimit=value; 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 _sqlShareHistory does not match with type int of variable _sqlResultTabLimit