if (toType == Byte.TYPE) return new Byte(number.byteValue()); if (toType == Short.TYPE) return new Short(number.shortValue());
if (toType == Long.TYPE) return new Long(number.longValue()); if (toType == Float.TYPE) return new Float(number.floatValue());
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/Primitive.java File path: /jEdit-4.2/src/bsh/Primitive.java
Method name: Object castWrapper(Class, Object) Method name: Object castWrapper(Class, Object)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (toType == Byte.TYPE)
1
if (toType == Long.TYPE)
2
			return new Byte(number.byteValue());
2
			return new Long(number.longValue());
3
		if (toType == Short.TYPE)
3
		if (toType == Float.TYPE)
4
			return new Short(number.shortValue());
4
			return new Float(number.floatValue());
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.9
Clones locationClones are in the same method
Number of node comparisons4