tok.sortRanges();
tok.compactRanges();
//tok.dumpRanges();
/*
if (this.isSet(RegularExpression.IGNORE_CASE))
tok = RangeToken.createCaseInsensitiveToken(tok);
*/
this.setContext(S_NORMAL);
this.next(); // Skips ']'
return tok;
tok.sortRanges();
tok.compactRanges();
//tok.dumpRanges();
this.setContext(S_NORMAL);
this.next(); // Skips ']'
return tok;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
|
Method name: RangeToken parseCharacterClass(boolean)
|
|
Method name: RangeToken parseCharacterClass(boolean)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | tok.sortRanges();↵ | | 1 | tok.sortRanges();↵
|
2 | tok.compactRanges();↵ | | 2 | tok.compactRanges();↵
|
3 | //tok.dumpRanges();↵ | | 3 | //tok.dumpRanges();↵
|
4 | /*↵ | | |
|
5 | if (this.isSet(RegularExpression.IGNORE_CASE))↵ | | |
|
6 | tok = RangeToken.createCaseInsensitiveToken(tok);↵ | | |
|
7 | */↵ | | |
|
8 | this.setContext(S_NORMAL);↵ | | 4 | this.setContext(S_NORMAL);↵
|
9 | this.next(); // Skips ']'↵ | | 5 | this.next(); // Skips ']'↵
|
|
10 | return tok; | | 6 | return tok;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same java file |
Number of node comparisons | 18 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
90 | tok.sortRanges(); | | 96 | tok.sortRanges(); |
91 | tok.compactRanges(); | | 97 | tok.compactRanges(); |
92 | this.setContext(S_NORMAL); | | 98 | this.setContext(S_NORMAL); |
93 | this.next(); | | 99 | this.next(); |
94 | return tok; | | 100 | return tok; |
Precondition Violations (0)
Row |
Violation |