if (progressMonitorWithBlocking != null) { progressMonitorWithBlocking.clearBlocked(); }
if (progressMonitorWithBlocking != null) { progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)); }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicMonitor.java File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicMonitor.java
Method name: void clearBlocked() Method name: void setBlocked(Diagnostic)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (progressMonitorWithBlocking != null)
1
if (progressMonitorWithBlocking != null)
2
      {
2
      {
3
        progressMonitorWithBlocking.clearBlocked();
3
        progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason));
4
      }
4
      }
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.1
Clones locationClones are declared in the same class
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)8.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (progressMonitorWithBlocking != null)
    1
    if (progressMonitorWithBlocking != null)
    2
    progressMonitorWithBlocking.clearBlocked();
    2
    progressMonitorWithBlocking.clearBlocked();
    2
    progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason));
    Differences
    Expression1Expression2Difference
    clearBlockedsetBlockedMETHOD_INVOCATION_NAME_MISMATCH
    progressMonitorWithBlocking.clearBlocked()progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason))ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression progressMonitorWithBlocking.clearBlocked() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression progressMonitorWithBlocking.clearBlocked() is a void method call, and thus it cannot be parameterized
    Expression progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)) is a void method call, and thus it cannot be parameterized
    Expression progressMonitorWithBlocking.clearBlocked() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression progressMonitorWithBlocking.clearBlocked() is a void method call, and thus it cannot be parameterized
    Expression progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)) is a void method call, and thus it cannot be parameterized
    2
    progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason));
    Precondition Violations (8)
    Row Violation
    1Expression progressMonitorWithBlocking.clearBlocked() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression progressMonitorWithBlocking.clearBlocked() is a void method call, and thus it cannot be parameterized
    4Expression progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)) is a void method call, and thus it cannot be parameterized
    5Expression progressMonitorWithBlocking.clearBlocked() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression progressMonitorWithBlocking.clearBlocked() is a void method call, and thus it cannot be parameterized
    8Expression progressMonitorWithBlocking.setBlocked(BasicDiagnostic.toIStatus(reason)) is a void method call, and thus it cannot be parameterized