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