File file = DefaultConfigDirectory.getInstance().getCurrentPath(); File logDirectory = new File(file, "log");
File file = DefaultConfigDirectory.getInstance().getCurrentPath(); File tagFile = new File(file, "tags.xml");
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/globalactions/ViewLogAction.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/tagging/TagManager.java
Method name: void actionPerformed(ActionEvent) Method name: void TagManager()
Number of AST nodes: 2 Number of AST nodes: 2
1
File file = DefaultConfigDirectory.getInstance().getCurrentPath();
1
File file = DefaultConfigDirectory.getInstance().getCurrentPath();
2
		File logDirectory = new File(file, "log");
2
		File tagFile = new File(file, "tags.xml");
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 comparisons2
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    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
    1
    File file = DefaultConfigDirectory.getInstance().getCurrentPath();
    1
    File file = DefaultConfigDirectory.getInstance().getCurrentPath();
    2
    File logDirectory = new File(file, "log");
    2
    File logDirectory = new File(file, "log");
    2
    File tagFile = new File(file, "tags.xml");
    Differences
    Expression1Expression2Difference
    logDirectorytagFileVARIABLE_NAME_MISMATCH
    "log""tags.xml"LITERAL_VALUE_MISMATCH
    2
    File tagFile = new File(file, "tags.xml");
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes org.columba.core.gui.globalactions.ViewLogAction and org.columba.core.tagging.TagManager do not have a common superclass