return LIST_FILES;
} else if (actionL.equals("chmod")) {
return CHMOD;
} else if (actionL.equals("mkdir")) {
return MK_DIR;
} else if (actionL.equals("rmdir")) {
return RM_DIR;
} else if (actionL.equals("site")) {
return SITE_CMD;
}
return DEL_FILES;
} else if (actionL.equals("list")) {
return LIST_FILES;
} else if (actionL.equals("chmod")) {
return CHMOD;
} else if (actionL.equals("mkdir")) {
return MK_DIR;
} else if (actionL.equals("rmdir")) {
return RM_DIR;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/FTP.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/FTP.java
|
Method name: int getAction()
|
|
Method name: int getAction()
|
Number of AST nodes: 9
|
|
Number of AST nodes: 5
|
|
| | | 1 | return DEL_FILES;↵
|
| | | 2 | } else if (actionL.equals("list")) {↵
|
1 | return LIST_FILES;↵ | | 3 | return LIST_FILES;↵
|
2 | } else if (actionL.equals("chmod")) {↵ | | 4 | } else if (actionL.equals("chmod")) {↵
|
3 | return CHMOD;↵ | | 5 | return CHMOD;↵
|
4 | } else if (actionL.equals("mkdir")) {↵ | | 6 | } else if (actionL.equals("mkdir")) {↵
|
5 | return MK_DIR;↵ | | 7 | return MK_DIR;↵
|
6 | } else if (actionL.equals("rmdir")) {↵ | | 8 | } else if (actionL.equals("rmdir")) {↵
|
7 | return RM_DIR;↵ | | 9 | return RM_DIR;
|
8 | } else if (actionL.equals("site")) {↵ | | | |
9 | return SITE_CMD;↵ | | | |
10 | } | | | |
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
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) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
9 | return LIST_FILES; | | 7 | return DEL_FILES; |
Precondition Violations (0)
Row |
Violation |