for (int i = 0; i < entrySet.length; i++) {
final CVSEntry entry = entrySet[ i ];
if (userList.containsKey(entry.getAuthor())) {
entry.setAuthor(userList.getProperty(entry.getAuthor()));
}
}
if (0 != required.length) {
System.out.println("Extensions Required By Library:");
for (int i = 0; i < required.length; i++) {
final Extension extension = required[ i ];
System.out.println(extension.toString());
}
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java
|
Method name: void replaceAuthorIdWithName(Properties, CVSEntry[])
|
|
Method name: void displayLibrary(File, Manifest)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | for (int i = 0; i < entrySet.length; i++) {↵ | | 1 | if (0 != required.length) {↵
|
|
2 | final CVSEntry entry = entrySet[ i ];↵ | | 2 | ↵
|
3 | if (userList.containsKey(entry.getAuthor())) {↵ | | |
|
4 | entry.setAuthor(userList.getProperty(entry.getAuthor()↵ | | 3 | System.out.println("Extensions Required By Library:");↵
|
| | | 4 | for (int i = 0; i < required.length; i++) {↵
|
| | | 5 | final Extension extension = required[ i ];↵
|
5 | ));↵ | | 6 | System.out.println(extension.toString());↵
|
6 | }↵ | | 7 | }↵
|
7 | } | | 8 | }
|
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 | Clones are in different classes |
Number of node comparisons | 1 |