if (_refreshPeriod != seconds) { _refreshPeriod = seconds; resetTimer(); }
if (enable != _autoRefresh) { _autoRefresh = enable; resetTimer(); }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/dboutput/DBOutputPanel.java File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/sessioninfo/SessionInfoPanel.java
Method name: void setAutoRefreshPeriod(int) Method name: void setAutoRefresh(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (_refreshPeriod != seconds)
1
if (enable != _autoRefresh)
2
      {
2
      {
3
         _refreshPeriod = seconds;
3
         _autoRefresh = enable;
4
         resetTimer();
4
         resetTimer();
5
      }
5
      }
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.1
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Non-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 (_refreshPeriod != seconds)
    1
    if (_refreshPeriod != seconds)
    1
    if (enable != _autoRefresh)
    Differences
    Expression1Expression2Difference
    _refreshPeriodenableVARIABLE_NAME_MISMATCH
    intbooleanVARIABLE_TYPE_MISMATCH
    seconds_autoRefreshVARIABLE_NAME_MISMATCH
    intbooleanVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type int of variable _refreshPeriod does not match with type boolean of variable enable
    Type int of variable seconds does not match with type boolean of variable _autoRefresh
    1
    if (enable != _autoRefresh)
                                                  
    2
    _autoRefresh = enable;
    Preondition Violations
    Unmatched statement _autoRefresh=enable; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2
    _autoRefresh = enable;
    2
    _refreshPeriod = seconds;
    2
    _refreshPeriod = seconds;
    Preondition Violations
    Unmatched statement _refreshPeriod=seconds; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                        
    3
    resetTimer();
    3
    resetTimer();
    Precondition Violations (4)
    Row Violation
    1Type int of variable _refreshPeriod does not match with type boolean of variable enable
    2Type int of variable seconds does not match with type boolean of variable _autoRefresh
    3Unmatched statement _autoRefresh=enable; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    4Unmatched statement _refreshPeriod=seconds; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted