if (constructor == null) {
LOG.severe("Couldn't find constructor for " + className
+ " with matching argument-list: ");
for (int i = 0; i < args.length; i++) {
LOG.severe("argument[" + i + "]=" + args[i]);
}
return null;
}
LOG.severe("Couldn't find constructor for " + className
+ " with matching argument-list: ");
for (int i = 0; i < arguments.length; i++) {
LOG.severe("argument[" + i + "]=" + arguments[i]);
}
return null;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/ExternalClassLoader.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/Extension.java
|
Method name: Object instanciate(String, Object[])
|
|
Method name: IExtensionInterface instanciateJavaClass(String, Object[])
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | if (constructor == null) {↵ | | |
|
2 | LOG.severe("Couldn't find constructor for " + className↵ | | 1 | LOG.severe("Couldn't find constructor for " + className↵
|
3 | + " with matching argument-list: ");↵ | | 2 | + " with matching argument-list: ");↵
|
4 | for (int i = 0; i < args.length; i++) {↵ | | 3 | for (int i = 0; i < arguments.length; i++) {↵
|
5 | LOG.severe("argument[" + i + "]=" + args[i]);↵ | | 4 | LOG.severe("argument[" + i + "]=" + arguments[i]);↵
|
6 | }↵ | | 5 | }↵
|
|
7 | return null;↵ | | 6 | return null;
|
8 | } | | | |
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
-
{Refactorable}
Mapping Summary
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.9 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
7 | 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: "); |
8 | for (int i = 0; i < args.length; i++) | | 13 | for (int i = 0; i < arguments.length; i++) |
9 | LOG.severe("argument[" + i + "]=" + args[i]); | | 14 | LOG.severe("argument[" + i + "]=" + arguments[i]); |
10 | return null; | | 15 | return null; |
Precondition Violations (0)
Row |
Violation |