try { Constructor constr = colClass.getConstructor(new Class[] { String.class }); return constr.newInstance(new Object[] { "" }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { } try { Constructor constr = colClass.getConstructor(new Class[] { Integer.TYPE }); return constr.newInstance(new Object[] { new Integer(0) }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { } try { Constructor constr = colClass.getConstructor(new Class[] { Long.TYPE }); return constr.newInstance(new Object[] { new Long(0L) }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { }
try { Constructor constr = colClass.getConstructor(new Class[] { Character.TYPE }); return constr.newInstance(new Object[] { new Character(' ') }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { } try { Constructor constr = colClass.getConstructor(new Class[] { Byte.TYPE }); return constr.newInstance(new Object[] { new Byte(Byte.MIN_VALUE) }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { } try { Constructor constr = colClass.getConstructor(new Class[] { Short.TYPE }); return constr.newInstance(new Object[] { new Short(Short.MIN_VALUE) }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/PowerTableModel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/PowerTableModel.java
Method name: Object createDefaultValue(int) Method name: Object createDefaultValue(int)
Number of AST nodes: 9 Number of AST nodes: 9
1
try {
1
try {
2
				Constructor constr = colClass.getConstructor(new Class[] { String.class });
2
				Constructor constr = colClass.getConstructor(new Class[] { Character.TYPE });
3
				return constr.newInstance(new Object[] { "" });
3
				return constr.newInstance(new Object[] { 
4
			
4
new Character(' ') });
5
} catch (NoSuchMethodException err) {
5
            } catch (NoSuchMethodException err) {
6
            } catch (InstantiationException err) {
6
            } catch (InstantiationException err) {
7
            } catch (IllegalAccessException err) {
7
            } catch (IllegalAccessException err) {
8
            } catch (InvocationTargetException err) {
8
            } catch (InvocationTargetException err) {
9
            }
9
			}
10
			try {
10
			try {
11
				Constructor constr = colClass.getConstructor(new Class[] { Integer.TYPE });
11
				Constructor constr = colClass.getConstructor(new Class[] { Byte.TYPE });
12
				return constr.newInstance(new Object[] { new Integer(0) });
12
				return constr.newInstance(new Object[] { new Byte(Byte.MIN_VALUE) });
13
            } catch (NoSuchMethodException err) {
13
            } catch (NoSuchMethodException err) {
14
            } catch (InstantiationException err) {
14
            } catch (InstantiationException err) {
15
            } catch (IllegalAccessException err) {
15
            } catch (IllegalAccessException err) {
16
            } catch (InvocationTargetException err) {
16
            } catch (InvocationTargetException err) {
17
			}
17
			}
18
			try {
18
			try {
19
				Constructor constr = colClass.getConstructor(new Class[] { Long.TYPE });
19
				Constructor constr = colClass.getConstructor(new Class[] { Short.TYPE });
20
				return constr.newInstance(new Object[] { new Long(0L) });
20
				return constr.newInstance(new Object[] { new Short(Short.MIN_VALUE) });
21
            } catch (NoSuchMethodException err) {
21
            } catch (NoSuchMethodException err) {
22
            } catch (InstantiationException err) {
22
            } catch (InstantiationException err) {
23
            } catch (IllegalAccessException err) {
23
            } catch (IllegalAccessException err) {
24
            } catch (InvocationTargetException err) {
24
            } catch (InvocationTargetException err) {
25
			}
25
			}
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 locationClones are in the same method
Number of node comparisons0