if (_useNetbeansTextControl != data) { getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data); _useNetbeansTextControl = data; }
if (enable != _autoRefresh) { _autoRefresh = enable; resetTimer(); }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/sessioninfo/SessionInfoPanel.java
Method name: void setUseNetbeansTextControl(boolean) Method name: void setAutoRefresh(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (_useNetbeansTextControl != data)
1
if (
2
      {
3
         getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data);
4
         _useNetbeansTextControl = data
2
enable != _autoRefresh)
3
      {
4
         _autoRefresh = enable;
5
;
5
         resetTimer();
6
      }
6
      }
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 in different classes
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)1.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (_useNetbeansTextControl != data)
    1
    if (_useNetbeansTextControl != data)
    1
    if (enable != _autoRefresh)
    Differences
    Expression1Expression2Difference
    _useNetbeansTextControlenableVARIABLE_NAME_MISMATCH
    data_autoRefreshVARIABLE_NAME_MISMATCH
    1
    if (enable != _autoRefresh)
    2
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data);
    2
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data);
    Preondition Violations
    Unmatched statement getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL,_useNetbeansTextControl,data); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                                                                                                                                                            
    3
    _useNetbeansTextControl = data;
    3
    _useNetbeansTextControl = data;
    2
    _autoRefresh = enable;
    Differences
    Expression1Expression2Difference
    _useNetbeansTextControl_autoRefreshVARIABLE_NAME_MISMATCH
    dataenableVARIABLE_NAME_MISMATCH
    2
    _autoRefresh = enable;
                                    
    3
    resetTimer();
    Preondition Violations
    Unmatched statement resetTimer(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    resetTimer();
    Precondition Violations (2)
    Row Violation
    1Unmatched statement getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL,_useNetbeansTextControl,data); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement resetTimer(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted