final SyntaxStyle oldValue = _whiteSpaceStyle; _whiteSpaceStyle = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.WHITE_SPACE_STYLE, oldValue, _whiteSpaceStyle);
final SyntaxStyle oldValue = _tableStyle; _tableStyle = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.TABLE_STYLE, oldValue, _tableStyle);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java
Method name: void setWhiteSpaceStyle(SyntaxStyle) Method name: void setTableStyle(SyntaxStyle)
Number of AST nodes: 3 Number of AST nodes: 3
1
final SyntaxStyle oldValue = _whiteSpaceStyle;
1
final SyntaxStyle oldValue = _tableStyle;
2
			_whiteSpaceStyle = data;
2
			_tableStyle = data;
3
			getPropertyChangeReporter().firePropertyChange(IPropertyNames.WHITE_SPACE_STYLE,
3
			getPropertyChangeReporter().firePropertyChange(IPropertyNames.TABLE_STYLE,
4
				oldValue, _whiteSpaceStyle);
4
				oldValue, _tableStyle);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons5
  1. {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
    4
    final SyntaxStyle oldValue = _whiteSpaceStyle;
    4
    final SyntaxStyle oldValue = _whiteSpaceStyle;
    4
    final SyntaxStyle oldValue = _tableStyle;
    Differences
    Expression1Expression2Difference
    _whiteSpaceStyle_tableStyleVARIABLE_NAME_MISMATCH
    4
    final SyntaxStyle oldValue = _tableStyle;
    5
    _whiteSpaceStyle = data;
    5
    _whiteSpaceStyle = data;
    5
    _tableStyle = data;
    Differences
    Expression1Expression2Difference
    _whiteSpaceStyle_tableStyleVARIABLE_NAME_MISMATCH
    5
    _tableStyle = data;
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.WHITE_SPACE_STYLE, oldValue, _whiteSpaceStyle);
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.WHITE_SPACE_STYLE, oldValue, _whiteSpaceStyle);
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.TABLE_STYLE, oldValue, _tableStyle);
    Differences
    Expression1Expression2Difference
    WHITE_SPACE_STYLETABLE_STYLEVARIABLE_NAME_MISMATCH
    _whiteSpaceStyle_tableStyleVARIABLE_NAME_MISMATCH
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.TABLE_STYLE, oldValue, _tableStyle);
    Precondition Violations (0)
    Row Violation