File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/GenerateKey.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java | |||
Method name: void execute()
|
Method name: void validate()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (null == alias) {↵ | 1 | if (null == mypackage) {↵ | |
2 | throw new BuildException("alias attribute must be set");↵ | 2 | throw new BuildException("Package/module must be set.");↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (null == storepass) {↵ | 4 | if (null == mydestfile) {↵ | |
5 | throw new BuildException("storepass attribute must be set");↵ | 5 | throw new BuildException("Destfile must be set.");↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (null == dname && null == expandedDname) {↵ | 7 | if (null == mystartTag && null == mystartDate) {↵ | |
8 | throw new BuildException("dname must be set");↵ | 8 | throw new BuildException("Start tag or start date must be set.");↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.8 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 21 |
Number of mapped statements | 6 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (null == alias) |
| 1 | if (null == mypackage) | |||||||||||||||||
2 | throw new BuildException("alias attribute must be set"); |
| 2 | throw new BuildException("Package/module must be set."); | |||||||||||||||||
3 | if (null == storepass) |
| 3 | if (null == mydestfile) | |||||||||||||||||
4 | throw new BuildException("storepass attribute must be set"); |
| 4 | throw new BuildException("Destfile must be set."); | |||||||||||||||||
5 | if (null == dname && null == expandedDname) |
| 5 | if (null == mystartTag && null == mystartDate) | |||||||||||||||||
6 | throw new BuildException("dname must be set"); |
| 6 | throw new BuildException("Start tag or start date must be set."); |
Row | Violation |
---|---|
1 | Type java.lang.String of variable storepass does not match with type java.io.File of variable mydestfile |
2 | Type org.apache.tools.ant.taskdefs.GenerateKey.DistinguishedName of variable expandedDname does not match with type java.lang.String of variable mystartDate |