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/GenerateKey.java | |||
Method name: void validate()
|
Method name: void execute()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (null == mypackage) {↵ | 1 | if (null == alias) {↵ | |
2 | throw new BuildException("Package/module must be set.");↵ | 2 | throw new BuildException("alias attribute must be set");↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (null == mydestfile) {↵ | 4 | if (null == storepass) {↵ | |
5 | throw new BuildException("Destfile must be set.");↵ | 5 | throw new BuildException("storepass attribute must be set");↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (null == mystartTag && null == mystartDate) {↵ | 7 | if (null == dname && null == expandedDname) {↵ | |
8 | throw new BuildException("Start tag or start date must be set.");↵ | 8 | throw new BuildException("dname 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.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 27 |
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) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (null == mypackage) |
| 1 | if (null == alias) | |||||||||||||||||
2 | throw new BuildException("Package/module must be set."); |
| 2 | throw new BuildException("alias attribute must be set"); | |||||||||||||||||
3 | if (null == mydestfile) |
| 3 | if (null == storepass) | |||||||||||||||||
4 | throw new BuildException("Destfile must be set."); |
| 4 | throw new BuildException("storepass attribute must be set"); | |||||||||||||||||
5 | if (null == mystartTag && null == mystartDate) |
| 5 | if (null == dname && null == expandedDname) | |||||||||||||||||
6 | throw new BuildException("Start tag or start date must be set."); |
| 6 | throw new BuildException("dname must be set"); |
Row | Violation |
---|---|
1 | Type java.io.File of variable mydestfile does not match with type java.lang.String of variable storepass |
2 | Type java.lang.String of variable mystartDate does not match with type org.apache.tools.ant.taskdefs.GenerateKey.DistinguishedName of variable expandedDname |