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/GenericDeploymentTool.java | |||
Method name: DescriptorHandler getDescriptorHandler(File)
|
Method name: DescriptorHandler getDescriptorHandler(File)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | DescriptorHandler handler = new DescriptorHandler(getTask(), srcDir);↵ | 1 | DescriptorHandler h = new DescriptorHandler(getTask(), srcDir);↵ | |
2 | ↵ | |||
3 | // register all the DTDs, both the ones that are known and↵ | 2 | register↵ | |
4 | // any supplied by the user↵ | |||
5 | handler.registerDTD(PUBLICID_EJB11, ejb11DTD);↵ | |||
3 | KnownDTDs(h);↵ | |||
4 | // register any DTDs supplied by the user↵ | |||
6 | for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) {↵ | 5 | for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) {↵ | |
7 | EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next();↵ | 6 | EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next();↵ | |
8 | handler.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation());↵ | 7 | h.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation());↵ | |
9 | }↵ | 8 | }↵ | |
10 | return handler; | 9 | return h; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 15 |
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) | 7.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | DescriptorHandler handler = new DescriptorHandler(getTask(), srcDir); |
| 1 | DescriptorHandler h = new DescriptorHandler(getTask(), srcDir); | ||||||||||||||||||||||||
2 | handler.registerDTD(PUBLICID_EJB11, ejb11DTD); |
| 2 | registerKnownDTDs(h); | ||||||||||||||||||||||||
3 | for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext(); ) | 3 | for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext(); ) | |||||||||||||||||||||||||
4 | EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation)i.next(); | 4 | EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation)i.next(); | |||||||||||||||||||||||||
5 | handler.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation()); |
| 5 | h.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation()); | ||||||||||||||||||||||||
6 | return handler; |
| 6 | return h; |
Row | Violation |
---|---|
1 | Expression handler.registerDTD(PUBLICID_EJB11,ejb11DTD) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression registerKnownDTDs(h) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression handler.registerDTD(PUBLICID_EJB11,ejb11DTD) is a void method call, and thus it cannot be parameterized |
4 | Expression registerKnownDTDs(h) is a void method call, and thus it cannot be parameterized |
5 | Expression handler.registerDTD(PUBLICID_EJB11,ejb11DTD) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression registerKnownDTDs(h) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression handler.registerDTD(PUBLICID_EJB11,ejb11DTD) is a void method call, and thus it cannot be parameterized |
8 | Expression registerKnownDTDs(h) is a void method call, and thus it cannot be parameterized |