if ((arguments == null) || (arguments.length == 0)) { plugin = (IExtensionInterface) actClass.newInstance(); } else { Constructor constructor; constructor = ClassLoaderHelper .findConstructor(arguments, actClass); // couldn't find correct constructor if (constructor == 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; } else { plugin = (IExtensionInterface) constructor .newInstance(arguments);
if ((arguments == null) || (arguments.length == 0)) { plugin = (IExtensionInterface) actClass.newInstance(); } else { Constructor constructor; constructor = ClassLoaderHelper .findConstructor(arguments, actClass); // couldn't find correct constructor if (constructor == 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; } else { plugin = (IExtensionInterface) constructor .newInstance(arguments);
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if ((arguments == null) || (arguments.length == 0)) {
1
if ((arguments == null) || (arguments.length == 0)) {
2
			plugin = (IExtensionInterface) actClass.newInstance();
2
			plugin = (IExtensionInterface) actClass.newInstance();
3
		} else {
3
		} else {
4
			Constructor constructor;
4
			Constructor constructor;
5
			constructor = ClassLoaderHelper
5
			constructor = ClassLoaderHelper
6
					.findConstructor(arguments, actClass);
6
					.findConstructor(arguments, actClass);
7
			// couldn't find correct constructor
7
			// couldn't find correct constructor
8
			if (constructor == null) {
8
			if (constructor == null) {
9
				LOG.severe("Couldn't find constructor for " + className
9
				LOG.severe("Couldn't find constructor for " + className
10
						+ " with matching argument-list: ");
10
						+ " with matching argument-list: ");
11
				for (int i = 0; i < arguments.length; i++) {
11
				for (int i = 0; i < arguments.length; i++) {
12
					LOG.severe("argument[" + i + "]=" + arguments[i]);
12
					LOG.severe("argument[" + i + "]=" + arguments[i]);
13
				}
13
				}
14
				return null;
14
				return null;
15
			} else {
15
			} else {
16
				plugin = (IExtensionInterface) constructor
16
				plugin = (IExtensionInterface) constructor
17
						.newInstance(arguments);
17
						.newInstance(arguments);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0