InputStream is;
try {
is = DiskIO.getResourceStream(resourcePath);
} catch (IOException e) {
e.printStackTrace();
// cancel
return null;
}
// parse plugin metadata
Hashtable hashtable = new Hashtable();
InputStream is;
try {
is = DiskIO.getResourceStream(resourcePath);
} catch (IOException e) {
e.printStackTrace();
// cancel
return;
}
addExtensionHandlers(is);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/PluginManager.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/PluginManager.java
|
Method name: String addPlugin(String)
|
|
Method name: void addExtensionHandlers(String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | InputStream is;↵ | | 1 | InputStream is;↵
|
2 | try {↵ | | 2 | try {↵
|
3 | is = DiskIO.getResourceStream(resourcePath);↵ | | 3 | is = DiskIO.getResourceStream(resourcePath);↵
|
4 | } catch (IOException e) {↵ | | 4 | } catch (IOException e) {↵
|
5 | e.printStackTrace();↵ | | 5 | e.printStackTrace();↵
|
6 | // cancel↵ | | 6 | // cancel↵
|
7 | return null;↵ | | 7 | return;↵
|
8 | }↵ | | 8 | }↵
|
|
9 | // parse plugin metadata↵ | | 9 | ↵
|
10 | Hashtable hashtable = new Hashtable(); | | 10 | addExtensionHandlers(is);
|
See real code fragment |
|
See real code fragment |
Summary
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |