final SyntaxStyle oldValue = _separatorStyle; _separatorStyle = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.SEPARATOR_STYLE, oldValue, _separatorStyle);
final SyntaxStyle oldValue = _identifierStyle; _identifierStyle = data; getPropertyChangeReporter().firePropertyChange(IPropertyNames.IDENTIFIER_STYLE, oldValue, _identifierStyle);
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 setSeparatorStyle(SyntaxStyle) Method name: void setIdentifierStyle(SyntaxStyle)
Number of AST nodes: 3 Number of AST nodes: 3
1
final SyntaxStyle oldValue = _separatorStyle;
1
final SyntaxStyle oldValue = _identifierStyle;
2
			_separatorStyle = data;
2
			_identifierStyle = data;
3
			getPropertyChangeReporter().firePropertyChange(IPropertyNames.SEPARATOR_STYLE,
3
			getPropertyChangeReporter().firePropertyChange(IPropertyNames.IDENTIFIER_STYLE,
4
				oldValue, _separatorStyle);
4
				oldValue, _identifierStyle);
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 = _separatorStyle;
    4
    final SyntaxStyle oldValue = _separatorStyle;
    4
    final SyntaxStyle oldValue = _identifierStyle;
    Differences
    Expression1Expression2Difference
    _separatorStyle_identifierStyleVARIABLE_NAME_MISMATCH
    4
    final SyntaxStyle oldValue = _identifierStyle;
    5
    _separatorStyle = data;
    5
    _separatorStyle = data;
    5
    _identifierStyle = data;
    Differences
    Expression1Expression2Difference
    _separatorStyle_identifierStyleVARIABLE_NAME_MISMATCH
    5
    _identifierStyle = data;
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SEPARATOR_STYLE, oldValue, _separatorStyle);
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.SEPARATOR_STYLE, oldValue, _separatorStyle);
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.IDENTIFIER_STYLE, oldValue, _identifierStyle);
    Differences
    Expression1Expression2Difference
    SEPARATOR_STYLEIDENTIFIER_STYLEVARIABLE_NAME_MISMATCH
    _separatorStyle_identifierStyleVARIABLE_NAME_MISMATCH
    6
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.IDENTIFIER_STYLE, oldValue, _identifierStyle);
    Precondition Violations (0)
    Row Violation