File path: /apache-ant-1.7.0/src/org/apache/tools/ant/helper/ProjectHelper2.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/helper/ProjectHelperImpl.java | |||
Method name: void parse(Project, Object, RootHandler)
|
Method name: void parse(Project, Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | parser.setEntityResolver(hb);↵ | 1 | parser.setEntityResolver(hb);↵ | |
2 | parser.setErrorHandler(hb);↵ | 2 | parser.setErrorHandler(hb);↵ | |
3 | parser.setDTDHandler(hb);↵ | 3 | parser.setDTDHandler(hb);↵ | |
4 | parser.parse(inputSource); | 4 |
| |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 17 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30 | parser.setEntityResolver(hb); |
| 19 | parser.setEntityResolver(hb); | |||||||||||||||
31 | parser.setErrorHandler(hb); |
| 20 | parser.setErrorHandler(hb); | |||||||||||||||
32 | parser.setDTDHandler(hb); |
| 21 | parser.setDTDHandler(hb); | |||||||||||||||
33 | parser.parse(inputSource); |
| 22 | parser.parse(inputSource); |
Row | Violation |
---|---|
1 | Type org.xml.sax.XMLReader of variable parser does not match with type org.xml.sax.Parser of variable parser |
2 | Expression hb cannot be unified with expression hb , because common superclass type org.xml.sax.EntityResolver cannot be passed as an argument to public abstract void setErrorHandler(org.xml.sax.ErrorHandler) |
3 | Type org.xml.sax.XMLReader of variable parser does not match with type org.xml.sax.Parser of variable parser |
4 | Expression hb cannot be unified with expression hb , because common superclass type org.xml.sax.EntityResolver cannot be passed as an argument to public abstract void setDTDHandler(org.xml.sax.DTDHandler) |
5 | Type org.xml.sax.XMLReader of variable parser does not match with type org.xml.sax.Parser of variable parser |
6 | Type org.xml.sax.XMLReader of variable parser does not match with type org.xml.sax.Parser of variable parser |