final boolean oldValue = _loadSchemasCatalogs; _loadSchemasCatalogs = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.LOAD_SCHEMAS_CATALOGS, oldValue, _loadSchemasCatalogs);
final boolean oldValue = _commitOnClosingConnection; _commitOnClosingConnection = data; getPropertyChangeReporter().firePropertyChange( IPropertyNames.COMMIT_ON_CLOSING_CONNECTION, oldValue, _commitOnClosingConnection);
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/session/properties/SessionProperties.java
Method name: void setLoadSchemasCatalogs(boolean) Method name: void setCommitOnClosingConnection(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
final boolean oldValue = _loadSchemasCatalogs;
1
final boolean oldValue = _
2
      _loadSchemasCatalogs
2
commitOnClosingConnection;
3
 = data;
3
      _commitOnClosingConnection = data;
4
      getPropertyChangeReporter().firePropertyChange(
4
      getPropertyChangeReporter().firePropertyChange(
5
         IPropertyNames.LOAD_SCHEMAS_CATALOGS, oldValue, _loadSchemasCatalogs
5
         IPropertyNames.COMMIT_ON_CLOSING_CONNECTION,
6
);
6
         oldValue, _commitOnClosingConnection);
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
    1
    final boolean oldValue = _loadSchemasCatalogs;
    1
    final boolean oldValue = _loadSchemasCatalogs;
    1
    final boolean oldValue = _commitOnClosingConnection;
    Differences
    Expression1Expression2Difference
    _loadSchemasCatalogs_commitOnClosingConnectionVARIABLE_NAME_MISMATCH
    1
    final boolean oldValue = _commitOnClosingConnection;
    2
    _loadSchemasCatalogs = data;
    2
    _loadSchemasCatalogs = data;
    2
    _commitOnClosingConnection = data;
    Differences
    Expression1Expression2Difference
    _loadSchemasCatalogs_commitOnClosingConnectionVARIABLE_NAME_MISMATCH
    2
    _commitOnClosingConnection = data;
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.LOAD_SCHEMAS_CATALOGS, oldValue, _loadSchemasCatalogs);
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.LOAD_SCHEMAS_CATALOGS, oldValue, _loadSchemasCatalogs);
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.COMMIT_ON_CLOSING_CONNECTION, oldValue, _commitOnClosingConnection);
    Differences
    Expression1Expression2Difference
    LOAD_SCHEMAS_CATALOGSCOMMIT_ON_CLOSING_CONNECTIONVARIABLE_NAME_MISMATCH
    _loadSchemasCatalogs_commitOnClosingConnectionVARIABLE_NAME_MISMATCH
    3
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.COMMIT_ON_CLOSING_CONNECTION, oldValue, _commitOnClosingConnection);
    Precondition Violations (0)
    Row Violation