File path: /jEdit-4.2/src/bsh/Primitive.java | File path: /jEdit-4.2/src/bsh/Types.java | |||
Method name: Primitive castPrimitive(Class, Class, Primitive, boolean, int)
|
Method name: Object castObject(Class, Class, Object, int, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if ( fromValue == Primitive.NULL && fromType != null )↵ | 1 | if ( fromValue == Primitive.NULL && fromType != null )↵ | |
2 | throw new InterpreterError("inconsistent args 1");↵ | 2 | throw new InterpreterError("inconsistent args 1");↵ | |
3 | if ( fromValue == Primitive.VOID && fromType != Void.TYPE )↵ | 3 | if ( fromValue == Primitive.VOID && fromType != Void.TYPE )↵ | |
4 | throw new InterpreterError("inconsistent args 2"); | 4 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 1.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 13 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | if (fromValue == Primitive.NULL && fromType != null) |
| 7 | if (fromValue == Primitive.NULL && fromType != null) | |||||||||||
8 | throw new InterpreterError("inconsistent args 1"); | 8 | throw new InterpreterError("inconsistent args 1"); | ||||||||||||
9 | if (fromValue == Primitive.VOID && fromType != Void.TYPE) |
| 9 | if (fromValue == Primitive.VOID && fromType != Void.TYPE) | |||||||||||
10 | throw new InterpreterError("inconsistent args 2"); | 10 | throw new InterpreterError("inconsistent args 2"); |
Row | Violation |
---|---|
1 | Type bsh.Primitive of variable fromValue does not match with type java.lang.Object of variable fromValue |
2 | Type bsh.Primitive of variable fromValue does not match with type java.lang.Object of variable fromValue |