if (titleLabel != null) { titleLabel.setImage(image); titleLabel.setText(title); }
if (node != null) { root.addNode(node); }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/ViewerPane.java File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/parser/RoseParser.java
Method name: void setTitle(String, Image) Method name: RoseNode parseObject(String)
Number of AST nodes: 3 Number of AST nodes: 2
1
if (titleLabel != null)
1
if (node != null)
2
    {
2
        {
3
      titleLabel.setImage(image);
3
      
4
      titleLabel.setText(title);
4
    root.addNode(node);
5
    }
5
        }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons6
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    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.5
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    if (titleLabel != null)
    1
    if (titleLabel != null)
    37
    if (node != null)
    Differences
    Expression1Expression2Difference
    titleLabelnodeVARIABLE_NAME_MISMATCH
    org.eclipse.swt.custom.CLabelorg.eclipse.emf.importer.rose.parser.RoseNodeSUBCLASS_TYPE_MISMATCH
    37
    if (node != null)
    2
    titleLabel.setImage(image);
                                                                
    3
    titleLabel.setText(title);
                                                              
                                                  
    38
    root.addNode(node);
    Precondition Violations (0)
    Row Violation