if (_autoLogon != value) { _autoLogon = value; getPropertyChangeReporter().firePropertyChange(IPropNames.AUTO_LOGON, !_autoLogon, _autoLogon); }
if (_useNetbeansTextControl != data) { getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data); _useNetbeansTextControl = data; }
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/SQLAlias.java File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java
Method name: void setAutoLogon(boolean) Method name: void setUseNetbeansTextControl(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (_autoLogon != value)
1
if (_
2
      {
3
         _autoLogon = value;
2
useNetbeansTextControl != data)
3
      {
4
         getPropertyChangeReporter().firePropertyChange(IPropNames.AUTO_LOGON,
4
         getPropertyChangeReporter().firePropertyChange(IPropertyNames.
5
                                    !_autoLogon, _autoLogon)
5
USE_NETBEANS_CONTROL, _useNetbeansTextControl, data);
6
;
6
         _useNetbeansTextControl = data;
7
      }
7
      }
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)1.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (_autoLogon != value)
    1
    if (_autoLogon != value)
    1
    if (_useNetbeansTextControl != data)
    Differences
    Expression1Expression2Difference
    _autoLogon_useNetbeansTextControlVARIABLE_NAME_MISMATCH
    valuedataVARIABLE_NAME_MISMATCH
    1
    if (_useNetbeansTextControl != data)
    2
    _autoLogon = value;
    2
    _autoLogon = value;
    3
    _useNetbeansTextControl = data;
    Differences
    Expression1Expression2Difference
    _autoLogon_useNetbeansTextControlVARIABLE_NAME_MISMATCH
    valuedataVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression _autoLogon is a field being modified, and thus it cannot be parameterized
    Expression _useNetbeansTextControl is a field being modified, and thus it cannot be parameterized
    3
    _useNetbeansTextControl = data;
    3
    getPropertyChangeReporter().firePropertyChange(IPropNames.AUTO_LOGON, !_autoLogon, _autoLogon);
    3
    getPropertyChangeReporter().firePropertyChange(IPropNames.AUTO_LOGON, !_autoLogon, _autoLogon);
    2
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data);
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.gui.db.SQLAlias.IPropNamesnet.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNamesVARIABLE_TYPE_MISMATCH
    AUTO_LOGONUSE_NETBEANS_CONTROLVARIABLE_NAME_MISMATCH
    !_autoLogon_useNetbeansTextControlTYPE_COMPATIBLE_REPLACEMENT
    _autoLogondataVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type net.sourceforge.squirrel_sql.client.gui.db.SQLAlias.IPropNames does not match with type net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNames
    • Make classes net.sourceforge.squirrel_sql.client.gui.db.SQLAlias.IPropNames and net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNames extend a common superclass
    Expression !_autoLogon cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _autoLogon cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data);
    Precondition Violations (5)
    Row Violation
    1Expression _autoLogon is a field being modified, and thus it cannot be parameterized
    2Expression _useNetbeansTextControl is a field being modified, and thus it cannot be parameterized
    3Type net.sourceforge.squirrel_sql.client.gui.db.SQLAlias.IPropNames does not match with type net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferences.IPropertyNames
    4Expression !_autoLogon cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression _autoLogon cannot be parameterized, because it has dependencies to/from statements that will be extracted