File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/XMLCatalog.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/XMLCatalog.java | |||
Method name: InputSource filesystemLookup(ResourceLocation)
|
Method name: InputSource classpathLookup(ResourceLocation)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (resFile.exists() && resFile.canRead()) {↵ | 1 | if (↵ | |
2 | try {↵ | |||
3 | source = new InputSource(new FileInputStream(resFile));↵ | |||
4 | String sysid = JAXPUtils.getSystemId(resFile);↵ | |||
5 | ↵ | 2 | is != null) {↵ | |
3 | source = new InputSource(is);↵ | |||
4 | URL entryURL = loader.getResource(matchingEntry.getLocation());↵ | |||
5 | String sysid = entryURL.toExternalForm();↵ | |||
6 | source.setSystemId(sysid);↵ | 6 | source.setSystemId(sysid);↵ | |
7 | log("catalog entry matched a readable file: '"↵ | 7 | log("catalog entry matched a re↵ | |
8 | ↵ | 8 | source in the classpath: '"↵ | |
9 | + sysid + "'", Project.MSG_DEBUG);↵ | 9 | + sysid + "'", Project.MSG_DEBUG);↵ | |
10 | } catch (IOException ex) {↵ | |||
11 | // ignore↵ | |||
12 | }↵ | |||
13 | } | 10 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |