type = VARIABLE; this.localVar = localVar; this.varName = varName; this.nameSpace = nameSpace;
super(name); this.path = path; addActionListener(new ShowFileAction());
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/LHS.java File path: /jEdit-4.2/jars/MacOS/macos/menu/ShowBufferMenu.java
Method name: void LHS(NameSpace, String, boolean) Method name: void ShowBufferMenuItem(String, String)
Number of AST nodes: 4 Number of AST nodes: 3
1
type = VARIABLE;
1
super(name);
2
		this.localVar = localVar;
2
			this.
3
		this.varName = varName;
4
		this.nameSpace = nameSpace
3
path = path;
5
;
4
			addActionListener(new ShowFileAction());
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 comparisons10
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                  
    1
    super(name);
    1
    type = VARIABLE;
    1
    type = VARIABLE;
    Preondition Violations
    Unmatched statement type=VARIABLE; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                      
    2
    this.localVar = localVar;
    2
    this.localVar = localVar;
    Preondition Violations
    Unmatched statement this.localVar=localVar; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                        
    3
    this.varName = varName;
    3
    this.varName = varName;
    2
    this.path = path;
    Differences
    Expression1Expression2Difference
    varNamepathVARIABLE_NAME_MISMATCH
    varNamepathVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.varName is a field being modified, and thus it cannot be parameterized
    Expression this.path is a field being modified, and thus it cannot be parameterized
    2
    this.path = path;
                                                                                          
    3
    addActionListener(new ShowFileAction());
    Preondition Violations
    Unmatched statement addActionListener(new ShowFileAction()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    addActionListener(new ShowFileAction());
    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
    1Unmatched statement type=VARIABLE; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement this.localVar=localVar; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Expression this.varName is a field being modified, and thus it cannot be parameterized
    4Expression this.path is a field being modified, and thus it cannot be parameterized
    5Unmatched statement addActionListener(new ShowFileAction()); 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