final boolean oldValue = _warnJreJdbcMismatch; _warnJreJdbcMismatch = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.WARN_JRE_JDBC_MISMATCH, oldValue, _warnJreJdbcMismatch);
final boolean oldValue = _contentsLimitRows; _contentsLimitRows = value; getPropertyChangeReporter().firePropertyChange( IPropertyNames.CONTENTS_LIMIT_ROWS, oldValue, _contentsLimitRows);
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 setWarnJreJdbcMismatch(boolean) Method name: void setContentsLimitRows(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
final boolean oldValue = _warnJreJdbcMismatch;
1
final boolean oldValue = _
2
            _warnJreJdbcMismatch = data;
3
   
2
contentsLimitRows;
3
         _contentsLimitRows = value;
4
         getPropertyChangeReporter().firePropertyChange(
4
         getPropertyChangeReporter().firePropertyChange(
5
                                        IPropertyNames.WARN_JRE_JDBC_MISMATCH,
5
            
6
                            
6
IPropertyNames.CONTENTS_LIMIT_ROWS,
7
            oldValue, _warnJreJdbcMismatch);
7
            oldValue, _contentsLimitRows);
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 comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    final boolean oldValue = _warnJreJdbcMismatch;
    2
    final boolean oldValue = _warnJreJdbcMismatch;
    2
    final boolean oldValue = _contentsLimitRows;
    Differences
    Expression1Expression2Difference
    _warnJreJdbcMismatch_contentsLimitRowsVARIABLE_NAME_MISMATCH
    2
    final boolean oldValue = _contentsLimitRows;
    3
    _warnJreJdbcMismatch = data;
    3
    _warnJreJdbcMismatch = data;
    3
    _contentsLimitRows = value;
    Differences
    Expression1Expression2Difference
    _warnJreJdbcMismatch_contentsLimitRowsVARIABLE_NAME_MISMATCH
    datavalueVARIABLE_NAME_MISMATCH
    3
    _contentsLimitRows = value;
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.WARN_JRE_JDBC_MISMATCH, oldValue, _warnJreJdbcMismatch);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.WARN_JRE_JDBC_MISMATCH, oldValue, _warnJreJdbcMismatch);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.CONTENTS_LIMIT_ROWS, oldValue, _contentsLimitRows);
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNamesnet.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNamesVARIABLE_TYPE_MISMATCH
    WARN_JRE_JDBC_MISMATCHCONTENTS_LIMIT_ROWSVARIABLE_NAME_MISMATCH
    _warnJreJdbcMismatch_contentsLimitRowsVARIABLE_NAME_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
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.CONTENTS_LIMIT_ROWS, oldValue, _contentsLimitRows);
    Precondition Violations (1)
    Row Violation
    1Type net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNames does not match with type net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames