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[] { Boolean.TYPE }); return constr.newInstance(new Object[] { Boolean.FALSE }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { } try { Constructor constr = colClass.getConstructor(new Class[] { Float.TYPE }); return constr.newInstance(new Object[] { new Float(0F) }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { } try { Constructor constr = colClass.getConstructor(new Class[] { Double.TYPE }); return constr.newInstance(new Object[] { new Double(0D) }); } 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[] { 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[] { Boolean.TYPE }); return constr.newInstance(new Object[] { Boolean.FALSE }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { } try { Constructor constr = colClass.getConstructor(new Class[] { Float.TYPE }); return constr.newInstance(new Object[] { new Float(0F) }); } catch (NoSuchMethodException err) { } catch (InstantiationException err) { } catch (IllegalAccessException err) { } catch (InvocationTargetException err) { } try { Constructor constr = colClass.getConstructor(new Class[] { Double.TYPE }); return constr.newInstance(new Object[] { new Double(0D) }); } 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: 24 Number of AST nodes: 24
1
try {
2
				Constructor constr = colClass.getConstructor(new Class[] { String.class });
3
				return constr.newInstance(new Object[] { "" });
4
			} catch (NoSuchMethodException err) {
5
            } catch (InstantiationException err) {
6
            } catch (IllegalAccessException err) {
7
            } catch (InvocationTargetException err) {
8
            }
9
			try {
1
try {
10
				Constructor constr = colClass.getConstructor(new Class[] { Integer.TYPE });
2
				Constructor constr = colClass.getConstructor(new Class[] { Integer.TYPE });
11
				return constr.newInstance(new Object[] { new Integer(0) });
3
				return constr.newInstance(new Object[] { new Integer(0) });
12
            } catch (NoSuchMethodException err) {
4
            } catch (NoSuchMethodException err) {
13
            } catch (InstantiationException err) {
5
            } catch (InstantiationException err) {
14
            } catch (IllegalAccessException err) {
6
            } catch (IllegalAccessException err) {
15
            } catch (InvocationTargetException err) {
7
            } catch (InvocationTargetException err) {
16
			}
8
			}
17
			try {
9
			try {
18
				Constructor constr = colClass.getConstructor(new Class[] { Long.TYPE });
10
				Constructor constr = colClass.getConstructor(new Class[] { Long.TYPE });
19
				return constr.newInstance(new Object[] { new Long(0L) });
11
				return constr.newInstance(new Object[] { new Long(0L) });
20
            } catch (NoSuchMethodException err) {
12
            } catch (NoSuchMethodException err) {
21
            } catch (InstantiationException err) {
13
            } catch (InstantiationException err) {
22
            } catch (IllegalAccessException err) {
14
            } catch (IllegalAccessException err) {
23
            } catch (InvocationTargetException err) {
15
            } catch (InvocationTargetException err) {
24
			}
16
			}
25
			try {
17
			try {
26
				Constructor constr = colClass.getConstructor(new Class[] { Boolean.TYPE });
18
				Constructor constr = colClass.getConstructor(new Class[] { Boolean.TYPE });
27
				return constr.newInstance(new Object[] { Boolean.FALSE });
19
				return constr.newInstance(new Object[] { Boolean.FALSE });
28
            } catch (NoSuchMethodException err) {
20
            } catch (NoSuchMethodException err) {
29
            } catch (InstantiationException err) {
21
            } catch (InstantiationException err) {
30
            } catch (IllegalAccessException err) {
22
            } catch (IllegalAccessException err) {
31
            } catch (InvocationTargetException err) {
23
            } catch (InvocationTargetException err) {
32
			}
24
			}
33
			try {
25
			try {
34
				Constructor constr = colClass.getConstructor(new Class[] { Float.TYPE });
26
				Constructor constr = colClass.getConstructor(new Class[] { Float.TYPE });
35
				return constr.newInstance(new Object[] { new Float(0F) });
27
				return constr.newInstance(new Object[] { new Float(0F) });
36
            } catch (NoSuchMethodException err) {
28
            } catch (NoSuchMethodException err) {
37
            } catch (InstantiationException err) {
29
            } catch (InstantiationException err) {
38
            } catch (IllegalAccessException err) {
30
            } catch (IllegalAccessException err) {
39
            } catch (InvocationTargetException err) {
31
            } catch (InvocationTargetException err) {
40
			}
32
			}
41
			try {
33
			try {
42
				Constructor constr = colClass.getConstructor(new Class[] { Double.TYPE });
34
				Constructor constr = colClass.getConstructor(new Class[] { Double.TYPE });
43
				return constr.newInstance(new Object[] { new Double(0D) });
35
				return constr.newInstance(new Object[] { new Double(0D) });
44
            } catch (NoSuchMethodException err) {
36
            } catch (NoSuchMethodException err) {
45
            } catch (InstantiationException err) {
37
            } catch (InstantiationException err) {
46
            } catch (IllegalAccessException err) {
38
            } catch (IllegalAccessException err) {
47
            } catch (InvocationTargetException err) {
39
            } catch (InvocationTargetException err) {
48
			}
40
			}
49
			try {
41
			try {
50
				Constructor constr = colClass.getConstructor(new Class[] { Character.TYPE });
42
				Constructor constr = colClass.getConstructor(new Class[] { Character.TYPE });
51
				return constr.newInstance(new Object[] { new Character(' ') });
43
				return constr.newInstance(new Object[] { new Character(' ') });
52
            } catch (NoSuchMethodException err) {
44
            } catch (NoSuchMethodException err) {
53
            } catch (InstantiationException err) {
45
            } catch (InstantiationException err) {
54
            } catch (IllegalAccessException err) {
46
            } catch (IllegalAccessException err) {
55
            } catch (InvocationTargetException err) {
47
            } catch (InvocationTargetException err) {
56
			}
48
			}
57
			try {
49
			try {
58
				Constructor constr = colClass.getConstructor(new Class[] { Byte.TYPE });
50
				Constructor constr = colClass.getConstructor(new Class[] { Byte.TYPE });
59
				return constr.newInstance(new Object[] { new Byte(Byte.MIN_VALUE) });
51
				return constr.newInstance(new Object[] { new Byte(Byte.MIN_VALUE) });
60
            } catch (NoSuchMethodException err) {
52
            } catch (NoSuchMethodException err) {
61
            } catch (InstantiationException err) {
53
            } catch (InstantiationException err) {
62
            } catch (IllegalAccessException err) {
54
            } catch (IllegalAccessException err) {
63
            } catch (InvocationTargetException err) {
55
            } catch (InvocationTargetException err) {
64
			}
56
			}
57
			try {
58
				Constructor constr = colClass.getConstructor(new Class[] { Short.TYPE });
59
				return constr.newInstance(new Object[] { new Short(Short.MIN_VALUE) });
60
            } catch (NoSuchMethodException err) {
61
            } catch (InstantiationException err) {
62
            } catch (IllegalAccessException err) {
63
            } catch (InvocationTargetException err) {
64
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons0
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation