if ((options & RegularExpression.SPECIAL_COMMA) != 0 && i > 0) sb.append(",");
if (this.ranges[i] == this.ranges[i+1]) {
sb.append(escapeCharInCharClass(this.ranges[i]));
} else {
sb.append(escapeCharInCharClass(this.ranges[i]));
sb.append('-');
sb.append(escapeCharInCharClass(this.ranges[i+1]));
}
if ((options & RegularExpression.SPECIAL_COMMA) != 0 && i > 0) sb.append(",");
if (this.ranges[i] == this.ranges[i+1]) {
sb.append(escapeCharInCharClass(this.ranges[i]));
} else {
sb.append(escapeCharInCharClass(this.ranges[i]));
sb.append('-');
sb.append(escapeCharInCharClass(this.ranges[i+1]));
}
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:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if ((options & RegularExpression.SPECIAL_COMMA) != 0 && i > 0) sb.append(",");↵ | | 1 | if ((options & RegularExpression.SPECIAL_COMMA) != 0 && i > 0) sb.append(",");↵
|
2 | if (this.ranges[i] == this.ranges[i+1]) {↵ | | 2 | if (this.ranges[i] == this.ranges[i+1]) {↵
|
3 | sb.append(escapeCharInCharClass(this.ranges[i]));↵ | | 3 | sb.append(escapeCharInCharClass(this.ranges[i]));↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | sb.append(escapeCharInCharClass(this.ranges[i]));↵ | | 5 | sb.append(escapeCharInCharClass(this.ranges[i]));↵
|
6 | sb.append('-');↵ | | 6 | sb.append('-');↵
|
7 | sb.append(escapeCharInCharClass(this.ranges[i+1]));↵ | | 7 | sb.append(escapeCharInCharClass(this.ranges[i+1]));↵
|
8 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |