String ch = "F";
if (files[i].isDirectory()) ch = "T";
// f2name shouldn't be selected: only timestamp has changed!
if (filenames[i].equalsIgnoreCase(f3name)) ch = "T";
if (filenames[i].equalsIgnoreCase(f4name)) ch = "T";
expected.append(ch);
String ch = "F";
if (files[i].isDirectory()) ch = "T";
if (filenames[i].equalsIgnoreCase(f3name)) ch = "T";
if (filenames[i].equalsIgnoreCase(f4name)) ch = "T";
expected.append(ch);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | String ch = "F";↵ | | 1 | String ch = "F";↵
|
2 | if (files[i].isDirectory()) ch = "T";↵ | | 2 | if (files[i].isDirectory()) ch = "T";↵
|
3 | // f2name shouldn't be selected: only timestamp has changed!↵ | | |
|
4 | if (filenames[i].equalsIgnoreCase(f3name)) ch = "T";↵ | | 3 | if (filenames[i].equalsIgnoreCase(f3name)) ch = "T";↵
|
5 | if (filenames[i].equalsIgnoreCase(f4name)) ch = "T";↵ | | 4 | if (filenames[i].equalsIgnoreCase(f4name)) ch = "T";↵
|
6 | expected.append(ch);↵ | | 5 | expected.append(ch);↵
|
7 | | | 6 |
|
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 |