final boolean oldValue = _showInfoLogMessages; _showInfoLogMessages = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.SHOW_INFO_LOG_MESSAGES, oldValue, _showInfoLogMessages);
final int oldValue = _sqlResultsTabPlacement; _sqlResultsTabPlacement = value; getPropertyChangeReporter().firePropertyChange( IPropertyNames.SQL_RESULTS_TAB_PLACEMENT, oldValue, _sqlResultsTabPlacement);
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/session/properties/SessionProperties.java
Method name: void setShowInfoLogMessages(boolean) Method name: void setSQLResultsTabPlacement(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
final boolean oldValue = _showInfoLogMessages;
1
final int oldValue = _sqlResultsTabPlacement;
2
          _showInfoLogMessages = data;
2
         _sqlResultsTabPlacement = value;
3
          getPropertyChangeReporter().firePropertyChange(
3
         getPropertyChangeReporter().firePropertyChange(
4
             IPropertyNames.SHOW_INFO_LOG_MESSAGES,
4
            IPropertyNames.SQL_RESULTS_TAB_PLACEMENT,
5
             oldValue, _showInfoLogMessages);
5
            oldValue, _sqlResultsTabPlacement);
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 in different classes
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 int oldValue = _sqlResultsTabPlacement;
    2
    final boolean oldValue = _showInfoLogMessages;
                                                                                                  
                                                                      
    3
    _sqlResultsTabPlacement = value;
    Preondition Violations
    Unmatched statement _sqlResultsTabPlacement=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    _sqlResultsTabPlacement = value;
    3
    _showInfoLogMessages = data;
    3
    _showInfoLogMessages = data;
    Preondition Violations
    Unmatched statement _showInfoLogMessages=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                              
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_INFO_LOG_MESSAGES, oldValue, _showInfoLogMessages);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_INFO_LOG_MESSAGES, oldValue, _showInfoLogMessages);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_RESULTS_TAB_PLACEMENT, oldValue, _sqlResultsTabPlacement);
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNamesnet.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNamesVARIABLE_TYPE_MISMATCH
    SHOW_INFO_LOG_MESSAGESSQL_RESULTS_TAB_PLACEMENTVARIABLE_NAME_MISMATCH
    booleanintVARIABLE_TYPE_MISMATCH
    _showInfoLogMessages_sqlResultsTabPlacementVARIABLE_NAME_MISMATCH
    booleanintVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNames does not match with type net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames
    • Make classes net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNames and net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames extend a common superclass
    Type boolean of variable oldValue does not match with type int of variable oldValue
    Type boolean of variable _showInfoLogMessages does not match with type int of variable _sqlResultsTabPlacement
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_RESULTS_TAB_PLACEMENT, oldValue, _sqlResultsTabPlacement);
    Precondition Violations (5)
    Row Violation
    1Unmatched statement _sqlResultsTabPlacement=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement _showInfoLogMessages=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Type net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNames does not match with type net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames
    4Type boolean of variable oldValue does not match with type int of variable oldValue
    5Type boolean of variable _showInfoLogMessages does not match with type int of variable _sqlResultsTabPlacement