if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {
getProject().log("Enabling system assertions", Project.MSG_DEBUG);
commandList.add("-enablesystemassertions");
} else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {
getProject().log("disabling system assertions", Project.MSG_DEBUG);
commandList.add("-disablesystemassertions");
if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {
getProject().log("Enabling system assertions", Project.MSG_DEBUG);
commandIterator.add("-enablesystemassertions");
} else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {
getProject().log("disabling system assertions", Project.MSG_DEBUG);
commandIterator.add("-disablesystemassertions");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/Assertions.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/Assertions.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {↵ | | 1 | if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {↵
|
2 | getProject().log("Enabling system assertions", Project.MSG_DEBUG);↵ | | 2 | getProject().log("Enabling system assertions", Project.MSG_DEBUG);↵
|
3 | commandList.add("-enablesystemassertions");↵ | | 3 | commandIterator.add("-enablesystemassertions");↵
|
4 | } else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {↵ | | 4 | } else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {↵
|
5 | getProject().log("disabling system assertions", Project.MSG_DEBUG);↵ | | 5 | getProject().log("disabling system assertions", Project.MSG_DEBUG);↵
|
6 | commandList.add("-disablesystemassertions");↵ | | 6 | commandIterator.add("-disablesystemassertions");↵
|
7 | | | 7 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |