addToken(currentToken); currentToken = null; addToken(new RETokenStart(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));
addToken(currentToken); currentToken = null; addToken(new RETokenEnd(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/gnu/regexp/RE.java File path: /jEdit-4.2/src/gnu/regexp/RE.java
Method name: void initialize(Object, int, RESyntax, int, int) Method name: void initialize(Object, int, RESyntax, int, int)
Number of AST nodes: 3 Number of AST nodes: 3
1
addToken(currentToken);
1
addToken(currentToken);
2
	currentToken = null;
2
	currentToken = null;
3
	addToken(new RETokenStart(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));
3
	addToken(new RETokenEnd(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));
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 the same method
Number of node comparisons6
  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
    187
    addToken(currentToken);
    191
    addToken(currentToken);
    188
    currentToken = null;
    192
    currentToken = null;
    189
    addToken(new RETokenStart(subIndex, ((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));
    189
    addToken(new RETokenStart(subIndex, ((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));
    193
    addToken(new RETokenEnd(subIndex, ((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));
    Differences
    Expression1Expression2Difference
    gnu.regexp.RETokenStartgnu.regexp.RETokenEndSUBCLASS_TYPE_MISMATCH
    193
    addToken(new RETokenEnd(subIndex, ((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));
    Precondition Violations (0)
    Row Violation