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: void checkAttributes()
|
Method name: void checkAttributes()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | throw new BuildException("listing attribute must be set for list "↵ | |||
2 | + "action!");↵ | |||
3 | }↵ | |||
4 | if (action == MK_DIR && remotedir == null) {↵ | |||
1 | throw new BuildException("remotedir attribute must be set for "↵ | 5 | throw new BuildException("remotedir attribute must be set for "↵ | |
2 | + "mkdir action!");↵ | 6 | + "mkdir action!");↵ | |
3 | }↵ | 7 | }↵ | |
4 | if (action == CHMOD && chmod == null) {↵ | 8 | if (action == CHMOD && chmod == null) {↵ | |
5 | throw new BuildException("chmod attribute must be set for chmod "↵ | 9 | throw new BuildException("chmod attribute must be set for chmod "↵ | |
6 | + "action!");↵ | 10 | + "action!");↵ | |
7 | }↵ | 11 |
| |
8 | if (action == SITE_CMD && siteCommand == null) {↵ | |||
9 | throw new BuildException("sitecommand attribute must be set for site "↵ | |||
10 | + "action!");↵ | |||
11 | } | |||
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
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) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | if (action == CHMOD && chmod == null) | 11 | if (action == CHMOD && chmod == null) | ||||||||||||||
12 | throw new BuildException("chmod attribute must be set for chmod " + "action!"); | 12 | throw new BuildException("chmod attribute must be set for chmod " + "action!"); | ||||||||||||||
13 | if (action == SITE_CMD && siteCommand == null) |
| 9 | if (action == MK_DIR && remotedir == null) | |||||||||||||
14 | throw new BuildException("sitecommand attribute must be set for site " + "action!"); |
| 10 | throw new BuildException("remotedir attribute must be set for " + "mkdir action!"); |
Row | Violation |
---|