File path: /jakarta-jmeter-2.3.2/src/org/apache/commons/jexl/bsf/JexlEngine.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/commons/jexl/bsf/JexlEngine.java | |||
Method name: Object eval(String, int, int, Object)
|
Method name: void exec(String, int, int, Object)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (expr instanceof File) {↵ | 1 | if (script instanceof File) {↵ | |
2 | jExpr = ScriptFactory.createScript((File) expr);↵ | 2 | jExpr = ScriptFactory.createScript((File) script);↵ | |
3 | } else if (expr instanceof URL) {↵ | 3 | } else if (script instanceof URL) {↵ | |
4 | jExpr = ScriptFactory.createScript((URL) expr);↵ | 4 | jExpr = ScriptFactory.createScript((URL) script);↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | jExpr = ScriptFactory.createScript((String) expr);↵ | 6 | jExpr = ScriptFactory.createScript((String) script);↵ | |
7 | } | 7 |
| |
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 21 |
Number of mapped statements | 5 |
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) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | if (expr instanceof File) |
| 5 | if (script instanceof File) | ||||||||||
6 | jExpr = ScriptFactory.createScript((File)expr); |
| 6 | jExpr = ScriptFactory.createScript((File)script); | ||||||||||
7 | else if (expr instanceof URL) |
| 7 | else if (script instanceof URL) | ||||||||||
8 | jExpr = ScriptFactory.createScript((URL)expr); |
| 8 | jExpr = ScriptFactory.createScript((URL)script); | ||||||||||
else | else | |||||||||||||
9 | jExpr = ScriptFactory.createScript((String)expr); |
| 9 | jExpr = ScriptFactory.createScript((String)script); |
Row | Violation |
---|