this.name = name; this.attributes = attributes; subElements = new Vector();
this(id); this.name = name; this.description = description;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core-api/src/main/java/org/columba/core/xml/XmlElement.java File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/model/GroupModelPartial.java
Method name: void XmlElement(String, Hashtable) Method name: void GroupModelPartial(String, String, String)
Number of AST nodes: 3 Number of AST nodes: 3
1
this(id);
1
this.name = name;
2
		this.name = name;
2
		this.attributes = attributes;
3
		this.
3
		subElements = new Vector();
4
description = description;
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 comparisons7
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                            
    1
    this(id);
    1
    this.name = name;
    2
    this.name = name;
    2
    this.attributes = attributes;
    2
    this.attributes = attributes;
    Preondition Violations
    Unmatched statement this.attributes=attributes; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                
                                                                    
    3
    this.description = description;
    Preondition Violations
    Unmatched statement this.description=description; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    this.description = description;
    3
    subElements = new Vector();
    3
    subElements = new Vector();
    Preondition Violations
    Unmatched statement subElements=new Vector(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                            
    Precondition Violations (4)
    Row Violation
    1Unmatched statement this.attributes=attributes; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement this.description=description; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Unmatched statement subElements=new Vector(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4The refactoring of the clones is infeasible, because classes org.columba.core.xml.XmlElement and org.columba.addressbook.model.GroupModelPartial do not have a common superclass