super(subIndex); this.newline = newline; this.matchNull = matchNull;
super(subIndex); this.options = options; this.negative = negative;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/gnu/regexp/RETokenAny.java File path: /jEdit-4.2/src/gnu/regexp/RETokenOneOf.java
Method name: void RETokenAny(int, boolean, boolean) Method name: void RETokenOneOf(int, Vector, boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
super(subIndex);
1
super(subIndex);
2
    this.newline = newline;
2
    this.
3
    this.matchNull = matchNull
3
options = options;
4
;
4
    this.negative = negative;
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons6
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super(subIndex);
    1
    super(subIndex);
    1
    super(subIndex);
    Preondition Violations
    Super constructor call super(subIndex); cannot be extracted from constructor
    Super constructor call super(subIndex); cannot be extracted from constructor
    1
    super(subIndex);
                                                    
    2
    this.options = options;
    Preondition Violations
    Unmatched statement this.options=options; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    this.options = options;
    2
    this.newline = newline;
    2
    this.newline = newline;
    3
    this.negative = negative;
    Differences
    Expression1Expression2Difference
    newlinenegativeVARIABLE_NAME_MISMATCH
    newlinenegativeVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.newline is a field being modified, and thus it cannot be parameterized
    Expression this.negative is a field being modified, and thus it cannot be parameterized
    3
    this.negative = negative;
    3
    this.matchNull = matchNull;
    3
    this.matchNull = matchNull;
    Preondition Violations
    Unmatched statement this.matchNull=matchNull; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                            
    Precondition Violations (6)
    Row Violation
    1Super constructor call super(subIndex); cannot be extracted from constructor
    2Super constructor call super(subIndex); cannot be extracted from constructor
    3Unmatched statement this.options=options; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Expression this.newline is a field being modified, and thus it cannot be parameterized
    5Expression this.negative is a field being modified, and thus it cannot be parameterized
    6Unmatched statement this.matchNull=matchNull; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted