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: int getBeginning(int)
|
Method name: int getEnd(int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (this.beginpos == null)↵ | 1 | if (this.endpos == null)↵ | |
2 | throw new IllegalStateException("A result is not set.");↵ | 2 | throw new IllegalStateException("A result is not set.");↵ | |
3 | if (index < 0 || this.nofgroups <= index)↵ | 3 | if (index < 0 || this.nofgroups <= index)↵ | |
4 | throw new IllegalArgumentException("The parameter must be less than "↵ | 4 | throw new IllegalArgumentException("The parameter must be less than "↵ | |
5 | +this.nofgroups+": "+index);↵ | 5 | +this.nofgroups+": "+index);↵ | |
6 | return this.beginpos[index]; | 6 | return this.endpos[index]; | |
See real code fragment | See real code fragment |
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.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 14 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (this.beginpos == null) |
| 1 | if (this.endpos == null) | ||||||||||
2 | throw new IllegalStateException("A result is not set."); | 2 | throw new IllegalStateException("A result is not set."); | |||||||||||
3 | if (index < 0 || this.nofgroups <= index) | 3 | if (index < 0 || this.nofgroups <= index) | |||||||||||
4 | throw new IllegalArgumentException("The parameter must be less than " + this.nofgroups + ": " + index); | 4 | throw new IllegalArgumentException("The parameter must be less than " + this.nofgroups + ": " + index); | |||||||||||
5 | return this.beginpos[index]; |
| 5 | return this.endpos[index]; |
Row | Violation |
---|