File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Jikes.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Jikes.java | |||
Method name: boolean execute()
|
Method name: boolean execute()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | String emacsProperty =↵ | 1 | String pedanticProperty =↵ | |
2 | project.getProperty("build.compiler.emacs");↵ | 2 | project.getProperty("build.compiler.pedantic");↵ | |
3 | if (emacsProperty != null && Project.toBoolean(emacsProperty)) {↵ | 3 | if (pedanticProperty != null && Project.toBoolean(pedanticProperty)) {↵ | |
4 | cmd.createArgument().setValue("+E");↵ | 4 | cmd.createArgument().setValue("+P");↵ | |
5 | }↵ | 5 | }↵ | |
6 | /**↵ | 6 | /**↵ | |
7 | * Jikes issues more warnings that javac, for↵ | 7 | * Jikes ↵ | |
8 | * example, when you have files in your classpath↵ | |||
9 | * that don't exist. As this is often the case, th↵ | 8 | supports something it calls "full dependency↵ | |
10 | ese↵ | 9 | * checking", see the jikes documentation for differences↵ | |
11 | * warning can be pretty annoying.↵ | 10 | * between -depend and +F.↵ | |
12 | */↵ | 11 | */↵ | |
13 | String warningsProperty =↵ | 12 | String fullDependProperty =↵ | |
14 | project.getProperty("build.compiler.warnings"); | 13 | project.getProperty("build.compiler.fulldepend"); | |
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 | 8 |
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) | 30.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47 | String emacsProperty = project.getProperty("build.compiler.emacs"); |
| 58 | String pedanticProperty = project.getProperty("build.compiler.pedantic"); | |||||||||||||
48 | if (emacsProperty != null && Project.toBoolean(emacsProperty)) |
| 59 | if (pedanticProperty != null && Project.toBoolean(pedanticProperty)) | |||||||||||||
49 | cmd.createArgument().setValue("+E"); |
| 60 | cmd.createArgument().setValue("+P"); | |||||||||||||
50 | String warningsProperty = project.getProperty("build.compiler.warnings"); |
| 61 | String fullDependProperty = project.getProperty("build.compiler.fulldepend"); |
Row | Violation |
---|