File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java | |||
Method name: int executeInVM(CommandlineJava)
|
Method name: int executeInVM(CommandlineJava)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | String msg = "\""↵ | 1 | String msg = "\""↵ | |
2 | + f.getPath()↵ | 2 | + f.getPath()↵ | |
3 | + "\" does not represent a valid"↵ | 3 | + "\" does not represent a valid"↵ | |
4 | + " file or directory. JDepend would fail.";↵ | 4 | + " directory. JDepend would fail.";↵ | |
5 | log(msg);↵ | 5 | log(msg);↵ | |
6 | throw new BuildException(msg);↵ | 6 | throw new BuildException(msg);↵ | |
7 | }↵ | 7 | }↵ | |
8 | try {↵ | 8 | try {↵ | |
9 | jdepend.addDirectory(f.getPath());↵ | 9 | jdepend.addDirectory(f.getPath());↵ | |
10 | } catch (IOException e) {↵ | 10 | } catch (IOException e) {↵ | |
11 | String msg =↵ | 11 | String msg =↵ | |
12 | "JDepend Failed when adding a class directory: "↵ | 12 | "JDepend Failed when adding a source directory: "↵ | |
13 | + e.getMessage();↵ | 13 | + e.getMessage();↵ | |
14 | log(msg);↵ | 14 | log(msg);↵ | |
15 | throw new BuildException(msg);↵ | 15 | throw new BuildException(msg);↵ | |
16 | } | 16 |
| |
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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
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) | 9.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20 | try |
| 30 | try | ||||||||||
21 | jdepend.addDirectory(f.getPath()); | 31 | jdepend.addDirectory(f.getPath()); |
Row | Violation |
---|