File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicTOPLinkDeploymentTool.java | |||
Method name: void addVendorFiles(Hashtable, String)
|
Method name: void addVendorFiles(Hashtable, String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | File websphereEXT = new File(getConfig().descriptorDir, ddPrefix + WAS_EXT);↵ | 1 | File toplinkDD = new File(getConfig().descriptorDir, ddPrefix + toplinkDescriptor);↵ | |
2 | if (websphereEXT.exists()) {↵ | 2 | if (toplinkDD.exists()) {↵ | |
3 | ejbFiles.put(META_DIR + WAS_EXT,↵ | 3 | ejbFiles.put(META_DIR + ↵ | |
4 | websphereEXT↵ | 4 | toplinkDescriptor,↵ | |
5 | );↵ | 5 | toplinkDD);↵ | |
6 | } else {↵ | 6 | } else {↵ | |
7 | log("Unable to locate websphere extensions. "↵ | 7 | log("Unable to locate toplink deployment descriptor. "↵ | |
8 | + "It was expected to be in "↵ | 8 | + "It was expected to be in "↵ | |
9 | + websphereEXT.getPath(), Project.MSG_VERBOSE);↵ | 9 | + toplinkDD.getPath(), Project.MSG_WARN);↵ | |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
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) | 25.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | File websphereEXT = new File(getConfig().descriptorDir, ddPrefix + WAS_EXT); |
| 2 | File toplinkDD = new File(getConfig().descriptorDir, ddPrefix + toplinkDescriptor); | ||||||||||||||||
4 | if (websphereEXT.exists()) |
| 3 | if (toplinkDD.exists()) | ||||||||||||||||
5 | ejbFiles.put(META_DIR + WAS_EXT, websphereEXT); |
| 4 | ejbFiles.put(META_DIR + toplinkDescriptor, toplinkDD); | ||||||||||||||||
else | else | |||||||||||||||||||
6 | log("Unable to locate websphere extensions. " + "It was expected to be in " + websphereEXT.getPath(), Project.MSG_VERBOSE); |
| 5 | log("Unable to locate toplink deployment descriptor. " + "It was expected to be in " + toplinkDD.getPath(), Project.MSG_WARN); |
Row | Violation |
---|