final boolean oldValue = _removeMultiLineComment; _removeMultiLineComment = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.REMOVE_MULTI_LINE_COMMENT, oldValue, _removeMultiLineComment);
final boolean oldValue = _warnForUnsavedBufferEdits; _warnForUnsavedBufferEdits = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.WARN_FOR_UNSAVED_BUFFER_EDITS, oldValue, _warnForUnsavedBufferEdits);
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionProperties.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SquirrelPreferences.java
Method name: void setRemoveMultiLineComment(boolean) Method name: void setWarnForUnsavedBufferEdits(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
final boolean oldValue = _removeMultiLineComment;
1
final boolean oldValue = _
2
      _removeMultiLineComment
2
warnForUnsavedBufferEdits;
3
 = data;
3
            _warnForUnsavedBufferEdits = data;
4
      getPropertyChangeReporter().firePropertyChange(
4
            getPropertyChangeReporter().firePropertyChange(
5
         IPropertyNames.REMOVE_MULTI_LINE_COMMENT,
5
                                        IPropertyNames.
6
         oldValue, _removeMultiLineComment
6
WARN_FOR_UNSAVED_BUFFER_EDITS,
7
);
7
                                        oldValue, _warnForUnsavedBufferEdits);
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
    1
    final boolean oldValue = _removeMultiLineComment;
    1
    final boolean oldValue = _removeMultiLineComment;
    2
    final boolean oldValue = _warnForUnsavedBufferEdits;
    Differences
    Expression1Expression2Difference
    _removeMultiLineComment_warnForUnsavedBufferEditsVARIABLE_NAME_MISMATCH
    2
    final boolean oldValue = _warnForUnsavedBufferEdits;
    2
    _removeMultiLineComment = data;
    2
    _removeMultiLineComment = data;
    3
    _warnForUnsavedBufferEdits = data;
    Differences
    Expression1Expression2Difference
    _removeMultiLineComment_warnForUnsavedBufferEditsVARIABLE_NAME_MISMATCH
    3
    _warnForUnsavedBufferEdits = data;
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.REMOVE_MULTI_LINE_COMMENT, oldValue, _removeMultiLineComment);
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.REMOVE_MULTI_LINE_COMMENT, oldValue, _removeMultiLineComment);
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.WARN_FOR_UNSAVED_BUFFER_EDITS, oldValue, _warnForUnsavedBufferEdits);
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNamesnet.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNamesVARIABLE_TYPE_MISMATCH
    REMOVE_MULTI_LINE_COMMENTWARN_FOR_UNSAVED_BUFFER_EDITSVARIABLE_NAME_MISMATCH
    _removeMultiLineComment_warnForUnsavedBufferEditsVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames does not match with type net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNames
    • Make classes net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames and net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNames extend a common superclass
    4
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.WARN_FOR_UNSAVED_BUFFER_EDITS, oldValue, _warnForUnsavedBufferEdits);
    Precondition Violations (1)
    Row Violation
    1Type net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames does not match with type net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNames