if(!killRing.exists()) return; killRingModTime = killRing.lastModified(); Log.log(Log.MESSAGE,KillRing.class,"Loading killring.xml");
if(!recent.exists()) return; recentModTime = recent.lastModified(); Log.log(Log.MESSAGE,BufferHistory.class,"Loading recent.xml");
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/buffer/KillRing.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/BufferHistory.java
Method name: void load() Method name: void load()
Number of AST nodes: 4 Number of AST nodes: 4
1
if(!killRing.exists())
1
if(!recent.exists())
2
			return;
2
			return;
3
		killRingModTime = killRing.lastModified();
3
		recentModTime = recent.lastModified();
4
		Log.log(Log.MESSAGE,KillRing.class,"Loading killring.xml");
4
		Log.log(Log.MESSAGE,BufferHistory.class,"Loading recent.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.2
Clones locationClones are in different classes
Number of node comparisons6
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    5
    if (!killRing.exists())
    5
    if (!killRing.exists())
    5
    if (!recent.exists())
    Differences
    Expression1Expression2Difference
    killRingrecentVARIABLE_NAME_MISMATCH
    5
    if (!recent.exists())
    6
    return;
    6
    return;
    6
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    6
    return;
    7
    killRingModTime = killRing.lastModified();
    7
    killRingModTime = killRing.lastModified();
    7
    recentModTime = recent.lastModified();
    Differences
    Expression1Expression2Difference
    killRingModTimerecentModTimeVARIABLE_NAME_MISMATCH
    killRingrecentVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression killRingModTime is a field being modified, and thus it cannot be parameterized
    Expression recentModTime is a field being modified, and thus it cannot be parameterized
    7
    recentModTime = recent.lastModified();
    8
    Log.log(Log.MESSAGE, KillRing.class, "Loading killring.xml");
    8
    Log.log(Log.MESSAGE, BufferHistory.class, "Loading recent.xml");
    Precondition Violations (4)
    Row Violation
    1Conditional return;
    2Conditional return;
    3Expression killRingModTime is a field being modified, and thus it cannot be parameterized
    4Expression recentModTime is a field being modified, and thus it cannot be parameterized