File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/DefaultPluginLoader.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/Extension.java | |||
Method name: IExtensionInterface loadPlugin(String, String, Object[])
|
Method name: IExtensionInterface instanciateJavaClass(String, Object[])
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (constructor == null) {↵ | 1 | if (constructor == null) {↵ | |
2 | LOG.severe("Couldn't find constructor for " + className↵ | 2 | LOG.severe("Couldn't find constructor for " + className↵ | |
3 | + " with matching argument-list: ");↵ | 3 | + " with matching argument-list: ");↵ | |
4 | for (int i = 0; i < arguments.length; i++) {↵ | 4 | for (int i = 0; i < arguments.length; i++) {↵ | |
5 | LOG.severe("argument[" + i + "]=" + arguments[i]);↵ | 5 | LOG.severe("argument[" + i + "]=" + arguments[i]);↵ | |
6 | }↵ | 6 | }↵ | |
7 | return null;↵ | 7 | return null;↵ | |
8 | } else {↵ | 8 | } else {↵ | |
9 | plugin = (IExtensionInterface) constructor↵ | 9 | plugin = (IExtensionInterface) constructor↵ | |
10 | .newInstance(arguments);↵ | 10 | .newInstance(arguments);↵ | |
11 | } | 11 |
| |
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.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 21 |
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) | 2.7 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
10 | if (constructor == null) | 11 | if (constructor == null) | |
11 | LOG.severe("Couldn't find constructor for " + className + " with matching argument-list: "); | 12 | LOG.severe("Couldn't find constructor for " + className + " with matching argument-list: "); | |
12 | for (int i = 0; i < arguments.length; i++) | 13 | for (int i = 0; i < arguments.length; i++) | |
13 | LOG.severe("argument[" + i + "]=" + arguments[i]); | 14 | LOG.severe("argument[" + i + "]=" + arguments[i]); | |
14 | return null; | 15 | return null; | |
else | else | |||
15 | plugin = (IExtensionInterface)constructor.newInstance(arguments); | 16 | plugin = (IExtensionInterface)constructor.newInstance(arguments); |
Row | Violation |
---|---|
1 | Not all possible execution flows end in a return statement |