File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/ConcatFilter.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/ConcatFilter.java | |||
Method name: void initialize()
|
Method name: void initialize()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (prepend != null) {↵ | 1 | if (append != null) {↵ | |
2 | if (!prepend.isAbsolute()) {↵ | 2 | if (!append.isAbsolute()) {↵ | |
3 | prepend = new File(getProject().getBaseDir(), prepend.getPath());↵ | 3 | append = new File(getProject().getBaseDir(), append.getPath());↵ | |
4 | }↵ | 4 | }↵ | |
5 | prependReader = new BufferedReader(new FileReader(prepend));↵ | 5 | appendReader = new BufferedReader(new FileReader(append));↵ | |
6 | } | 6 |
| |
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.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
Number of mapped statements | 4 |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | if (prepend != null) |
| 14 | if (append != null) | |||||||||||||||||
11 | if (!prepend.isAbsolute()) |
| 15 | if (!append.isAbsolute()) | |||||||||||||||||
12 | prepend = new File(getProject().getBaseDir(), prepend.getPath()); |
| 16 | append = new File(getProject().getBaseDir(), append.getPath()); | |||||||||||||||||
13 | prependReader = new BufferedReader(new FileReader(prepend)); |
| 17 | appendReader = new BufferedReader(new FileReader(append)); |
Row | Violation |
---|---|
1 | Expression prepend is a field being modified, and thus it cannot be parameterized |
2 | Expression append is a field being modified, and thus it cannot be parameterized |
3 | Expression prependReader is a field being modified, and thus it cannot be parameterized |
4 | Expression appendReader is a field being modified, and thus it cannot be parameterized |
5 | Expression prepend cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression append cannot be parameterized, because it has dependencies to/from statements that will be extracted |