File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCRmtype.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkattr.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | int result = 0;↵ | 1 | int result = 0;↵ | |
2 | // Check for required attributes↵ | 2 | // Check for required attributes↵ | |
3 | if (getTypeKind() == null) {↵ | 3 | if (getTypeName() == null) {↵ | |
4 | throw new BuildException("Required attribute TypeKind not specified");↵ | 4 | throw new BuildException("Required attribute TypeName not specified");↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (getTypeName() == null) {↵ | 6 | if (getTypeValue() == null) {↵ | |
7 | throw new BuildException("Required attribute TypeName not specified");↵ | 7 | throw new BuildException("Required attribute TypeValue not specified");↵ | |
8 | } | 8 |
| |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
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) | 14.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | int result = 0; | 3 | int result = 0; | |||||||||||
3 | if (getTypeKind() == null) |
| 4 | if (getTypeName() == null) | ||||||||||
4 | throw new BuildException("Required attribute TypeKind not specified"); |
| 5 | throw new BuildException("Required attribute TypeName not specified"); | ||||||||||
5 | if (getTypeName() == null) |
| 6 | if (getTypeValue() == null) | ||||||||||
6 | throw new BuildException("Required attribute TypeName not specified"); |
| 7 | throw new BuildException("Required attribute TypeValue not specified"); |
Row | Violation |
---|