File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java | |||
Method name: void checkConfiguration(File)
|
Method name: void checkConfiguration(File)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (!home.getClassFile(buildDir).exists()) {↵ | 1 | if (!remote.getClassFile(buildDir).exists()) {↵ | |
2 | throw new EjbcException("The home interface "↵ | 2 | throw new EjbcException("The remote interface "↵ | |
3 | + home.getQualifiedClassName() + " could not be "↵ | 3 | + remote.getQualifiedClassName() + " could not be "↵ | |
4 | + "found.");↵ | 4 | + "found.");↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (!implementation.getClassFile(buildDir).exists()) {↵ | 6 | if (!home.getClassFile(buildDir).exists()) {↵ | |
7 | throw new EjbcException("The EJB implementation class "↵ | 7 | throw new EjbcException("The home interface "↵ | |
8 | + implementation.getQualifiedClassName() + " could "↵ | 8 | + home.getQualifiedClassName() + " could not be "↵ | |
9 | + "not be found.");↵ | 9 | + "found.");↵ | |
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.5 |
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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | if (!home.getClassFile(buildDir).exists()) | 15 | if (!home.getClassFile(buildDir).exists()) | ||||||||||||||||||||
16 | throw new EjbcException("The home interface " + home.getQualifiedClassName() + " could not be " + "found."); | 16 | throw new EjbcException("The home interface " + home.getQualifiedClassName() + " could not be " + "found."); | ||||||||||||||||||||
17 | if (!implementation.getClassFile(buildDir).exists()) |
| 13 | if (!remote.getClassFile(buildDir).exists()) | |||||||||||||||||||
18 | throw new EjbcException("The EJB implementation class " + implementation.getQualifiedClassName() + " could " + "not be found."); |
| 14 | throw new EjbcException("The remote interface " + remote.getQualifiedClassName() + " could not be " + "found."); |
Row | Violation |
---|