File path: /jEdit-4.2/src/bsh/ClassGeneratorUtil.java | File path: /jEdit-4.2/src/bsh/ClassGeneratorUtil.java | |||
Method name: void doSwitchBranch(int, String, String[], Label, Label[], int, CodeVisitor)
|
Method name: void doSwitchBranch(int, String, String[], Label, Label[], int, CodeVisitor)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | method = "getBoolean";↵ | |||
2 | else if ( type.equals("B") )↵ | |||
3 | method = "getByte";↵ | |||
4 | else if ( type.equals("C") )↵ | |||
5 | method = "getChar";↵ | 1 | method = "getChar";↵ | |
6 | else if ( type.equals("S") )↵ | 2 | else if ( type.equals("S") )↵ | |
7 | method = "getShort";↵ | 3 | method = "getShort";↵ | |
8 | else if ( type.equals("I") )↵ | 4 | else if ( type.equals("I") )↵ | |
9 | method = "getInt";↵ | 5 | method = "getInt";↵ | |
10 | else if ( type.equals("J") )↵ | 6 | else if ( type.equals("J") )↵ | |
11 | method = "getLong"; | 7 | method = "getLong";↵ | |
8 | else if ( type.equals("D") )↵ | |||
9 | method = "getDouble";↵ | |||
10 | else if ( type.equals("F") )↵ | |||
11 |
| |||
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 2 |
Number of mapped statements | 1 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | method = "getBoolean"; |
| 11 | method = "getChar"; |
Row | Violation |
---|