if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL); bits.set(index); return this;
if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL); bits.clear(index); return this;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/gnu/regexp/RESyntax.java File path: /jEdit-4.2/src/gnu/regexp/RESyntax.java
Method name: RESyntax set(int) Method name: RESyntax clear(int)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);
1
if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);
2
    bits.set(index);
2
      bits.clear(index);
3
    return this;
3
      return this;
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 comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    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.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (isFinal)
    1
    if (isFinal)
    2
    throw new IllegalAccessError(SYNTAX_IS_FINAL);
    2
    throw new IllegalAccessError(SYNTAX_IS_FINAL);
    3
    bits.set(index);
    3
    bits.set(index);
    3
    bits.clear(index);
    Differences
    Expression1Expression2Difference
    setclearMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression bits.set(index) is a void method call, and thus it cannot be parameterized
    Expression bits.clear(index) is a void method call, and thus it cannot be parameterized
    3
    bits.clear(index);
    4
    return this;
    4
    return this;
    Precondition Violations (2)
    Row Violation
    1Expression bits.set(index) is a void method call, and thus it cannot be parameterized
    2Expression bits.clear(index) is a void method call, and thus it cannot be parameterized