index = ch % this.shiftTable.length;
if (diff < this.shiftTable[index])
this.shiftTable[index] = diff;
index = ch % this.shiftTable.length;
if (diff < this.shiftTable[index])
this.shiftTable[index] = diff;
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: void BMPattern(String, int, boolean)
|
|
Method name: void BMPattern(String, int, boolean)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | index = ch % this.shiftTable.length;↵ | | 1 | index = ch % this.shiftTable.length;↵
|
2 | if (diff < this.shiftTable[index])↵ | | 2 | if (diff < this.shiftTable[index])↵
|
3 | this.shiftTable[index] = diff; | | 3 | this.shiftTable[index] = diff;
|
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
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.9 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
15 | index = ch % this.shiftTable.length; | | 19 | index = ch % this.shiftTable.length; |
16 | if (diff < this.shiftTable[index]) | | 20 | if (diff < this.shiftTable[index]) |
17 | this.shiftTable[index] = diff; | | 21 | this.shiftTable[index] = diff; |
Precondition Violations (0)
Row |
Violation |