int ruleAction = MARK_FOLLOWING | ((excludeMatch) ? EXCLUDE_MATCH : 0); return new ParserRule(ruleAction, seq.charAt(0), posMatch, seq.toCharArray(), null, 0, null, null, id);
int ruleAction = MARK_PREVIOUS | ((excludeMatch) ? EXCLUDE_MATCH : 0); return new ParserRule(ruleAction, seq.charAt(0), posMatch, seq.toCharArray(), null, 0, null, null, id);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/syntax/ParserRule.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/syntax/ParserRule.java
Method name: ParserRule createMarkFollowingRule(int, String, byte, boolean) Method name: ParserRule createMarkPreviousRule(int, String, byte, boolean)
Number of AST nodes: 2 Number of AST nodes: 2
1
int ruleAction = MARK_FOLLOWING |
1
int ruleAction = MARK_PREVIOUS |
2
			((excludeMatch) ? EXCLUDE_MATCH : 0);
2
			((excludeMatch) ? EXCLUDE_MATCH : 0);
3
		return new ParserRule(ruleAction, seq.charAt(0), posMatch,
3
		return new ParserRule(ruleAction, seq.charAt(0), posMatch,
4
			seq.toCharArray(), null, 0, null, null, id);
4
			seq.toCharArray(), null, 0, null, null, id);
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 declared in the same class
Number of node comparisons4
  1. {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
    int ruleAction = MARK_FOLLOWING | ((excludeMatch) ? EXCLUDE_MATCH : 0);
    1
    int ruleAction = MARK_FOLLOWING | ((excludeMatch) ? EXCLUDE_MATCH : 0);
    1
    int ruleAction = MARK_PREVIOUS | ((excludeMatch) ? EXCLUDE_MATCH : 0);
    Differences
    Expression1Expression2Difference
    MARK_FOLLOWINGMARK_PREVIOUSVARIABLE_NAME_MISMATCH
    1
    int ruleAction = MARK_PREVIOUS | ((excludeMatch) ? EXCLUDE_MATCH : 0);
    2
    return new ParserRule(ruleAction, seq.charAt(0), posMatch, seq.toCharArray(), null, 0, null, null, id);
    2
    return new ParserRule(ruleAction, seq.charAt(0), posMatch, seq.toCharArray(), null, 0, null, null, id);
    Precondition Violations (0)
    Row Violation