File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2InputStream.java | File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2InputStream.java | |||
Method name: void setupNoRandPartC()
|
Method name: void setupBlock()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | this.su_i2++;↵ | 1 | this.su_rNToGo = 0;↵ | |
2 | this.su_count = 0;↵ | 2 | this.su_rTPos = 0;↵ | |
3 | setupNoRandPartA(); | 3 | setupRandPartA(); | |
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 declared in the same class |
Number of node comparisons | 7 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | this.su_i2++; | | ||||||||||||||||
| 20 | this.su_rNToGo = 0; | ||||||||||||||||
8 | this.su_count = 0; |
| 21 | this.su_rTPos = 0; | ||||||||||||||
9 | setupNoRandPartA(); |
| 22 | setupRandPartA(); |
Row | Violation |
---|---|
1 | Expression this.su_count is a field being modified, and thus it cannot be parameterized |
2 | Expression this.su_rTPos is a field being modified, and thus it cannot be parameterized |
3 | Expression setupNoRandPartA() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression setupRandPartA() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression setupNoRandPartA() is a void method call, and thus it cannot be parameterized |
6 | Expression setupRandPartA() is a void method call, and thus it cannot be parameterized |