File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javadoc.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javadoc.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Path docletPath↵ | 1 | Path tagletPath = tagletInfo.getPath()↵ | |
2 | = doclet.getPath().concatSystemClasspath("ignore");↵ | 2 | .concatSystemClasspath("ignore");↵ | |
3 | if (docletPath.size() != 0) {↵ | 3 | if (tagletPath.size() != 0) {↵ | |
4 | toExecute.createArgument()↵ | 4 | toExecute.createArgument()↵ | |
5 | .setValue("-docletpath");↵ | 5 | .setValue("-tagletpath");↵ | |
6 | toExecute.createArgument().setPath(docletPath);↵ | 6 | toExecute.createArgument().setPath(tagletPath);↵ | |
7 | } | 7 | } | |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 11 |
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) | 7.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58 | Path docletPath = doclet.getPath().concatSystemClasspath("ignore"); |
| 152 | Path tagletPath = tagletInfo.getPath().concatSystemClasspath("ignore"); | ||||||||||||||||
59 | if (docletPath.size() != 0) |
| 153 | if (tagletPath.size() != 0) | ||||||||||||||||
60 | toExecute.createArgument().setValue("-docletpath"); |
| 154 | toExecute.createArgument().setValue("-tagletpath"); | ||||||||||||||||
61 | toExecute.createArgument().setPath(docletPath); |
| 155 | toExecute.createArgument().setPath(tagletPath); |
Row | Violation |
---|