if(lastfvmget == fvmcount - 1 || line < fvm[lastfvmget + 1]) { return lastfvmget; }
for (Item i = tab[index]; i != null; i = i.next) { if (i.hashCode == hashCode && key.isEqualTo(i)) { return i; } }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/DisplayManager.java File path: /jEdit-4.2/src/org/objectweb/asm/ClassWriter.java
Method name: int fvmget(int) Method name: Item get(Item)
Number of AST nodes: 2 Number of AST nodes: 3
1
if(lastfvmget == fvmcount - 1
2
					|| line < fvm[lastfvmget + 1])
3
				{
4
					return lastfvmget;
5
				
1
for (Item i = tab[index]; i != null; i = i.next) {
2
      if (i.hashCode == hashCode && key.isEqualTo(i)) {
3
        return i;
4
      }
6
}
5
    }
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.4
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)3.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    8
    if (lastfvmget == fvmcount - 1 || line < fvm[lastfvmget + 1])
    8
    if (lastfvmget == fvmcount - 1 || line < fvm[lastfvmget + 1])
    5
    if (i.hashCode == hashCode && key.isEqualTo(i))
    Differences
    Expression1Expression2Difference
    lastfvmgeti.hashCodeTYPE_COMPATIBLE_REPLACEMENT
    fvmcount - 1hashCodeINFIX_RIGHT_OPERAND_MISMATCH
    line < fvm[lastfvmget + 1]key.isEqualTo(i)INFIX_RIGHT_OPERAND_MISMATCH
    ||&&OPERATOR_MISMATCH
    5
    if (i.hashCode == hashCode && key.isEqualTo(i))
                            
    6
    return i;
    Preondition Violations
    Unmatched statement return i; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    Unmatched return i;
    6
    return i;
    9
    return lastfvmget;
    9
    return lastfvmget;
    Preondition Violations
    Unmatched statement return lastfvmget; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    Unmatched return lastfvmget;
                                              
    Precondition Violations (5)
    Row Violation
    1Unmatched statement return i; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched return i;
    3Unmatched statement return lastfvmget; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched return lastfvmget;
    5The refactoring of the clones is infeasible, because the number of macthed statements is equal to zero