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/IPlanetEjbcTask.java | |||
Method name: void checkConfiguration()
|
Method name: void checkConfiguration()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (dest == null) {↵ | 1 | if (ejbdescriptor == null) {↵ | |
2 | String msg = "The destination directory must be specified using "↵ | 2 | String msg = "The standard EJB descriptor must be specified using "↵ | |
3 | + "the \"dest\" attribute.";↵ | 3 | + "the \"ejbdescriptor\" attribute.";↵ | |
4 | throw new BuildException(msg, getLocation());↵ | 4 | throw new BuildException(msg, getLocation());↵ | |
5 | }↵ | 5 | }↵ | |
6 | if ((!dest.exists()) || (!dest.isDirectory())) {↵ | 6 | if ((!ejbdescriptor.exists()) || (!ejbdescriptor.isFile())) {↵ | |
7 | String msg = "The destination directory (" + dest + ") was not "↵ | 7 | String msg = "The standard EJB descriptor (" + ejbdescriptor↵ | |
8 | + "found or isn't a directory.";↵ | 8 | + ") was not found or isn't a file.";↵ | |
9 | throw new BuildException(msg, getLocation());↵ | 9 | throw new BuildException(msg, getLocation());↵ | |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 20 |
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.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13 | if (dest == null) |
| 1 | if (ejbdescriptor == null) | ||||||||||||||||||
14 | String msg = "The destination directory must be specified using " + "the \"dest\" attribute."; |
| 2 | String msg = "The standard EJB descriptor must be specified using " + "the \"ejbdescriptor\" attribute."; | ||||||||||||||||||
15 | throw new BuildException(msg, getLocation()); | 3 | throw new BuildException(msg, getLocation()); | |||||||||||||||||||
16 | if ((!dest.exists()) || (!dest.isDirectory())) |
| 4 | if ((!ejbdescriptor.exists()) || (!ejbdescriptor.isFile())) | ||||||||||||||||||
17 | String msg = "The destination directory (" + dest + ") was not " + "found or isn't a directory."; |
| 5 | String msg = "The standard EJB descriptor (" + ejbdescriptor + ") was not found or isn't a file."; | ||||||||||||||||||
18 | throw new BuildException(msg, getLocation()); | 6 | throw new BuildException(msg, getLocation()); |
Row | Violation |
---|---|
1 | Expression dest.isDirectory() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression ejbdescriptor.isFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression "The destination directory (" + dest + ") was not "+ "found or isn't a directory." cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression "The standard EJB descriptor (" + ejbdescriptor + ") was not found or isn't a file." cannot be parameterized, because it has dependencies to/from statements that will be extracted |