item = new ShowRecentDirMenuItem(file.getName(),file.getPath()); item.setIcon(FileCellRenderer.dirIcon); add(item);
item = new ShowRecentMenuItem(file.getName(),file.getPath()); item.setIcon(FileCellRenderer.fileIcon); add(item);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/jars/MacOS/macos/menu/ShowRecentDirMenu.java File path: /jEdit-4.2/jars/MacOS/macos/menu/ShowRecentMenu.java
Method name: void construct() Method name: void construct()
Number of AST nodes: 3 Number of AST nodes: 3
1
item = new ShowRecentDirMenuItem(file.getName(),file.getPath());
1
item = new ShowRecentMenuItem(file.getName(),file.getPath());
2
			item.setIcon(FileCellRenderer.dirIcon);
2
			item.setIcon(FileCellRenderer.fileIcon);
3
			add(item);
3
			add(item);
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons10
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    12
    item = new ShowRecentDirMenuItem(file.getName(), file.getPath());
    12
    item = new ShowRecentDirMenuItem(file.getName(), file.getPath());
    15
    item = new ShowRecentMenuItem(file.getName(), file.getPath());
    Differences
    Expression1Expression2Difference
    macos.menu.ShowRecentDirMenu.ShowRecentDirMenuItemmacos.menu.ShowRecentMenu.ShowRecentMenuItemSUBCLASS_TYPE_MISMATCH
    15
    item = new ShowRecentMenuItem(file.getName(), file.getPath());
    13
    item.setIcon(FileCellRenderer.dirIcon);
    13
    item.setIcon(FileCellRenderer.dirIcon);
    16
    item.setIcon(FileCellRenderer.fileIcon);
    Differences
    Expression1Expression2Difference
    dirIconfileIconVARIABLE_NAME_MISMATCH
    16
    item.setIcon(FileCellRenderer.fileIcon);
    14
    add(item);
    17
    add(item);
    Precondition Violations (0)
    Row Violation