type = VARIABLE; this.localVar = localVar; this.varName = varName; this.nameSpace = nameSpace;
super(subIndex); this.num = num; this.insens = insens;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/LHS.java File path: /jEdit-4.2/src/gnu/regexp/RETokenBackRef.java
Method name: void LHS(NameSpace, String, boolean) Method name: void RETokenBackRef(int, int, boolean)
Number of AST nodes: 4 Number of AST nodes: 3
1
type = VARIABLE;
2
		this.localVar = localVar;
3
		this.varName = varName;
4
		this.nameSpace = nameSpace
1
super(subIndex);
2
    this.num = num;
5
;
3
    this.insens = insens;
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
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                          
    1
    super(subIndex);
    1
    type = VARIABLE;
    1
    type = VARIABLE;
    2
    this.num = num;
    Differences
    Expression1Expression2Difference
    typethis.numTYPE_COMPATIBLE_REPLACEMENT
    VARIABLEnumVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression type is a field being modified, and thus it cannot be parameterized
    Expression this.num is a field being modified, and thus it cannot be parameterized
    2
    this.num = num;
    2
    this.localVar = localVar;
    2
    this.localVar = localVar;
    3
    this.insens = insens;
    Differences
    Expression1Expression2Difference
    localVarinsensVARIABLE_NAME_MISMATCH
    localVarinsensVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.localVar is a field being modified, and thus it cannot be parameterized
    Expression this.insens is a field being modified, and thus it cannot be parameterized
    3
    this.insens = insens;
    3
    this.varName = varName;
    3
    this.varName = varName;
    Preondition Violations
    Unmatched statement this.varName=varName; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                    
    4
    this.nameSpace = nameSpace;
    4
    this.nameSpace = nameSpace;
    Preondition Violations
    Unmatched statement this.nameSpace=nameSpace; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                            
    Precondition Violations (6)
    Row Violation
    1Expression type is a field being modified, and thus it cannot be parameterized
    2Expression this.num is a field being modified, and thus it cannot be parameterized
    3Expression this.localVar is a field being modified, and thus it cannot be parameterized
    4Expression this.insens is a field being modified, and thus it cannot be parameterized
    5Unmatched statement this.varName=varName; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched statement this.nameSpace=nameSpace; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted