if (_useOsterTextControl != data) { getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_OSTER_CONTROL, _useOsterTextControl, data); _useOsterTextControl = data; }
if (_loadColumnsInBackground != value) { _loadColumnsInBackground = value; getPropertyChangeReporter().firePropertyChange( IPropertyNames.LOAD_COLUMNS_IN_BACKGROUND, !_loadColumnsInBackground, _loadColumnsInBackground); }
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 setLoadColumnsInBackground(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (_useOsterTextControl != data)
1
if (_
2
		{
2
loadColumnsInBackground != value)
3
      {
4
         _loadColumnsInBackground = value;
3
         getPropertyChangeReporter().firePropertyChange(
5
         getPropertyChangeReporter().firePropertyChange(
4
IPropertyNames.USE_OSTER_CONTROL, _useOsterTextControl, data);
6
            IPropertyNames.
5
         _useOsterTextControl = data
7
LOAD_COLUMNS_IN_BACKGROUND,
6
;
8
            !_loadColumnsInBackground, _loadColumnsInBackground);
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 (_loadColumnsInBackground != value)
    Differences
    Expression1Expression2Difference
    _useOsterTextControl_loadColumnsInBackgroundVARIABLE_NAME_MISMATCH
    datavalueVARIABLE_NAME_MISMATCH
    1
    if (_loadColumnsInBackground != value)
    2
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_OSTER_CONTROL, _useOsterTextControl, data);
    2
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_OSTER_CONTROL, _useOsterTextControl, data);
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.LOAD_COLUMNS_IN_BACKGROUND, !_loadColumnsInBackground, _loadColumnsInBackground);
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNamesnet.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNamesVARIABLE_TYPE_MISMATCH
    USE_OSTER_CONTROLLOAD_COLUMNS_IN_BACKGROUNDVARIABLE_NAME_MISMATCH
    _useOsterTextControl!_loadColumnsInBackgroundTYPE_COMPATIBLE_REPLACEMENT
    data_loadColumnsInBackgroundVARIABLE_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 !_loadColumnsInBackground cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _loadColumnsInBackground cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.LOAD_COLUMNS_IN_BACKGROUND, !_loadColumnsInBackground, _loadColumnsInBackground);
    3
    _useOsterTextControl = data;
    3
    _useOsterTextControl = data;
    2
    _loadColumnsInBackground = value;
    Differences
    Expression1Expression2Difference
    _useOsterTextControl_loadColumnsInBackgroundVARIABLE_NAME_MISMATCH
    datavalueVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression _useOsterTextControl is a field being modified, and thus it cannot be parameterized
    Expression _loadColumnsInBackground is a field being modified, and thus it cannot be parameterized
    2
    _loadColumnsInBackground = 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 !_loadColumnsInBackground cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression _loadColumnsInBackground 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 _loadColumnsInBackground is a field being modified, and thus it cannot be parameterized