File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbcTask.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java | |||
Method name: void checkConfiguration()
|
Method name: void checkConfiguration(String, SAXParser)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | String msg = "The destination directory (" + dest + ") was not "↵ | 1 | String msg = "The iAS-specific EJB descriptor ("↵ | |
2 | + "found or isn't a directory.";↵ | 2 | + iasDescriptor + ") was not found.";↵ | |
3 | throw new BuildException(msg, getLocation());↵ | 3 | throw new BuildException(msg, getLocation());↵ | |
4 | }↵ | 4 | }↵ | |
5 | if ((iashome != null) && (!iashome.isDirectory())) {↵ | 5 | if ((iashome != null) && (!iashome.isDirectory())) {↵ | |
6 | String msg = "If \"iashome\" is specified, it must be a valid "↵ | 6 | String msg = "If \"iashome\" is specified, it must be a valid "↵ | |
7 | + "directory (it was set to " + iashome + ").";↵ | 7 | + "directory (it was set to " + iashome + ").";↵ | |
8 | throw new BuildException(msg, getLocation());↵ | 8 | throw new BuildException(msg, getLocation());↵ | |
9 | } | 9 |
| |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
19 | if ((iashome != null) && (!iashome.isDirectory())) | 10 | if ((iashome != null) && (!iashome.isDirectory())) | |
20 | String msg = "If \"iashome\" is specified, it must be a valid " + "directory (it was set to " + iashome + ")."; | 11 | String msg = "If \"iashome\" is specified, it must be a valid " + "directory (it was set to " + iashome + ")."; | |
21 | throw new BuildException(msg, getLocation()); | 12 | throw new BuildException(msg, getLocation()); |
Row | Violation |
---|