File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java | |||
Method name: void validate()
|
Method name: void validate()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | throw new BuildException("Destfile ↵ | 1 | throw new BuildException("Only one of start tag and start date "↵ | |
2 | must be set.");↵ | 2 | + "must be set.");↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (null == mystartTag && null == mystartDate) {↵ | 4 | if (null == myendTag && null == myendDate) {↵ | |
5 | throw new BuildException("Start tag or start date must be set.");↵ | 5 | throw new BuildException("End tag or end date must be set.");↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (null != mystartTag && null != mystartDate) {↵ | 7 | if (null != myendTag && null != myendDate) {↵ | |
8 | throw new BuildException("Only one of start tag and start date "↵ | 8 | throw new BuildException("Only one of end tag and end date must "↵ | |
9 | + "must be set.");↵ | 9 | + "be set.");↵ | |
10 | } | 10 |
| |
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.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | if (null == mystartTag && null == mystartDate) |
| 9 | if (null == myendTag && null == myendDate) | |||||||||||||
6 | throw new BuildException("Start tag or start date must be set."); |
| 10 | throw new BuildException("End tag or end date must be set."); | |||||||||||||
7 | if (null != mystartTag && null != mystartDate) |
| 11 | if (null != myendTag && null != myendDate) | |||||||||||||
8 | throw new BuildException("Only one of start tag and start date " + "must be set."); |
| 12 | throw new BuildException("Only one of end tag and end date must " + "be set."); |
Row | Violation |
---|