final SyntaxStyle oldValue = _functionStyle; _functionStyle = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.FUNCTION_STYLE, oldValue, _functionStyle);
final SyntaxStyle oldValue = _errorStyle; _errorStyle = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.ERROR_STYLE, oldValue, _errorStyle);
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 setFunctionStyle(SyntaxStyle) Method name: void setErrorStyle(SyntaxStyle)
Number of AST nodes: 3 Number of AST nodes: 3
1
final SyntaxStyle oldValue = _functionStyle;
1
final SyntaxStyle oldValue = _errorStyle;
2
			_functionStyle = data;
2
			_errorStyle = data;
3
			getPropertyChangeReporter().firePropertyChange(IPropertyNames.FUNCTION_STYLE,
3
			getPropertyChangeReporter().firePropertyChange(IPropertyNames.ERROR_STYLE,
4
				oldValue, _functionStyle);
4
				oldValue, _errorStyle);
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 = _functionStyle;
    4
    final SyntaxStyle oldValue = _functionStyle;
    4
    final SyntaxStyle oldValue = _errorStyle;
    Differences
    Expression1Expression2Difference
    _functionStyle_errorStyleVARIABLE_NAME_MISMATCH
    4
    final SyntaxStyle oldValue = _errorStyle;
    5
    _functionStyle = data;
    5
    _functionStyle = data;
    5
    _errorStyle = data;
    Differences
    Expression1Expression2Difference
    _functionStyle_errorStyleVARIABLE_NAME_MISMATCH
    5
    _errorStyle = data;
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.FUNCTION_STYLE, oldValue, _functionStyle);
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.FUNCTION_STYLE, oldValue, _functionStyle);
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.ERROR_STYLE, oldValue, _errorStyle);
    Differences
    Expression1Expression2Difference
    FUNCTION_STYLEERROR_STYLEVARIABLE_NAME_MISMATCH
    _functionStyle_errorStyleVARIABLE_NAME_MISMATCH
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.ERROR_STYLE, oldValue, _errorStyle);
    Precondition Violations (0)
    Row Violation