File path: /jEdit-4.2/src/gnu/regexp/REMatchEnumeration.java | File path: /jEdit-4.2/src/gnu/regexp/REFilterInputStream.java | |||
Method name: void REMatchEnumeration(RE, CharIndexed, int, int)
|
Method name: void REFilterInputStream(InputStream, RE, String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | more = MAYBE;↵ | 1 | super(stream);↵ | |
2 | this.expr = expr;↵ | 2 | this.↵ | |
3 | this.input = input;↵ | |||
4 | this.index = index↵ | 3 | stream = new CharIndexedInputStream(stream,0);↵ | |
5 | ;↵ | 4 | this.expr = expr;↵ | |
6 | this.eflags = eflags; | 5 | this.replace = replace; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 15 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | super(stream); | ||||||||||||||||||||||||
1 | more = MAYBE; |
| | |||||||||||||||||||||||
2 | this.expr = expr; | 3 | this.expr = expr; | |||||||||||||||||||||||
3 | this.input = input; |
| 2 | this.stream = new CharIndexedInputStream(stream, 0); | ||||||||||||||||||||||
|
| 4 | this.replace = replace; | |||||||||||||||||||||||
4 | this.index = index; |
| | |||||||||||||||||||||||
5 | this.eflags = eflags; |
| |
Row | Violation |
---|---|
1 | Unmatched statement more=MAYBE; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Expression this.input is a field being modified, and thus it cannot be parameterized |
3 | Expression this.stream is a field being modified, and thus it cannot be parameterized |
4 | Expression new CharIndexedInputStream(stream,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Unmatched statement this.replace=replace; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Unmatched statement this.index=index; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
7 | Unmatched statement this.eflags=eflags; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
8 | The refactoring of the clones is infeasible, because classes gnu.regexp.REMatchEnumeration and gnu.regexp.REFilterInputStream do not have a common superclass |