if (_useOsterTextControl != data) { getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_OSTER_CONTROL, _useOsterTextControl, data); _useOsterTextControl = data; }
if (_abortOnError != value) { _abortOnError = value; getPropertyChangeReporter().firePropertyChange( IPropertyNames.ABORT_ON_ERROR, !_abortOnError, _abortOnError); }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionProperties.java
Method name: void setUseOsterTextControl(boolean) Method name: void setAbortOnError(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (_useOsterTextControl != data)
1
if (_abortOnError != 
2
		{
2
value)
3
      {
4
         _abortOnError = value;
3
         getPropertyChangeReporter().firePropertyChange(
5
         getPropertyChangeReporter().firePropertyChange(
4
IPropertyNames.USE_OSTER_CONTROL, _useOsterTextControl, data);
6
            IPropertyNames.
5
         _useOsterTextControl = data
7
ABORT_ON_ERROR,
6
;
8
            !_abortOnError, _abortOnError);
7
      }
9
      }
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
Number of node comparisons9
  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)2.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (_useOsterTextControl != data)
    1
    if (_useOsterTextControl != data)
    1
    if (_abortOnError != value)
    Differences
    Expression1Expression2Difference
    _useOsterTextControl_abortOnErrorVARIABLE_NAME_MISMATCH
    datavalueVARIABLE_NAME_MISMATCH
    1
    if (_abortOnError != value)
    2
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_OSTER_CONTROL, _useOsterTextControl, data);
    2
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_OSTER_CONTROL, _useOsterTextControl, data);
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.ABORT_ON_ERROR, !_abortOnError, _abortOnError);
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNamesnet.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNamesVARIABLE_TYPE_MISMATCH
    USE_OSTER_CONTROLABORT_ON_ERRORVARIABLE_NAME_MISMATCH
    _useOsterTextControl!_abortOnErrorTYPE_COMPATIBLE_REPLACEMENT
    data_abortOnErrorVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNames does not match with type net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames
    • Make classes net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNames and net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames extend a common superclass
    Expression !_abortOnError cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _abortOnError cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.ABORT_ON_ERROR, !_abortOnError, _abortOnError);
    3
    _useOsterTextControl = data;
    3
    _useOsterTextControl = data;
    2
    _abortOnError = value;
    Differences
    Expression1Expression2Difference
    _useOsterTextControl_abortOnErrorVARIABLE_NAME_MISMATCH
    datavalueVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression _useOsterTextControl is a field being modified, and thus it cannot be parameterized
    Expression _abortOnError is a field being modified, and thus it cannot be parameterized
    2
    _abortOnError = value;
    Precondition Violations (5)
    Row Violation
    1Type net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNames does not match with type net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames
    2Expression !_abortOnError cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression _abortOnError cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression _useOsterTextControl is a field being modified, and thus it cannot be parameterized
    5Expression _abortOnError is a field being modified, and thus it cannot be parameterized