File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java | |||
Method name: Commandline setupJavacCommandlineSwitches(Commandline, boolean)
|
Method name: Commandline setupJavacCommandlineSwitches(Commandline, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (memoryInitialSize != null) {↵ | 1 | if (memoryMaximumSize != null) {↵ | |
2 | if (!attributes.isForkedJavac()) {↵ | 2 | if (!attributes.isForkedJavac()) {↵ | |
3 | attributes.log("Since fork is false, ignoring "↵ | 3 | attributes.log("Since fork is false, ignoring "↵ | |
4 | + "memoryInitialSize setting.",↵ | 4 | + "memoryMaximumSize setting.",↵ | |
5 | Project.MSG_WARN);↵ | 5 | Project.MSG_WARN);↵ | |
6 | } else {↵ | 6 | } else {↵ | |
7 | cmd.createArgument().setValue(memoryParameterPrefix↵ | 7 | cmd.createArgument().setValue(memoryParameterPrefix↵ | |
8 | + "ms" + memoryInitialSize);↵ | 8 | + "mx" + memoryMaximumSize);↵ | |
9 | }↵ | 9 | }↵ | |
10 | } | 10 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | if (memoryInitialSize != null) |
| 11 | if (memoryMaximumSize != null) | |||||||||||||
8 | if (!attributes.isForkedJavac()) | 12 | if (!attributes.isForkedJavac()) | ||||||||||||||
9 | attributes.log("Since fork is false, ignoring " + "memoryInitialSize setting.", Project.MSG_WARN); |
| 13 | attributes.log("Since fork is false, ignoring " + "memoryMaximumSize setting.", Project.MSG_WARN); | |||||||||||||
else | else | ||||||||||||||||
10 | cmd.createArgument().setValue(memoryParameterPrefix + "ms" + memoryInitialSize); |
| 14 | cmd.createArgument().setValue(memoryParameterPrefix + "mx" + memoryMaximumSize); |
Row | Violation |
---|