File path: /columba-1.4-src/core/src/main/java/org/columba/core/scripting/interpreter/BshInterpreter.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/scripting/interpreter/JythonInterpreter.java | |||
Method name: void execute(ColumbaScript, Map)
|
Method name: void execute(ColumbaScript, Map)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | for (Iterator it = vars.entrySet().iterator(); it.hasNext();)↵ | 1 | for (Iterator it = vars.entrySet().iterator(); it.hasNext();)↵ | |
2 | {↵ | 2 | ↵ | |
3 | ↵ | 3 | {↵ | |
4 | Map.Entry entry = (Map.Entry) it.next();↵ | 4 | Map.Entry entry = (Map.Entry) it.next();↵ | |
5 | bsh.set(entry.getKey().toString(), entry.getValue());↵ | 5 | jython.set(entry.getKey().toString(), entry.getValue());↵ | |
6 | } | 6 |
| |
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) | 0.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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) | 25.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | for (Iterator it = vars.entrySet().iterator(); it.hasNext(); ) | 3 | for (Iterator it = vars.entrySet().iterator(); it.hasNext(); ) | |||||||||||||||
6 | Map.Entry entry = (Map.Entry)it.next(); | 4 | Map.Entry entry = (Map.Entry)it.next(); | |||||||||||||||
7 | bsh.set(entry.getKey().toString(), entry.getValue()); |
| 5 | jython.set(entry.getKey().toString(), entry.getValue()); |
Row | Violation |
---|---|
1 | Type bsh.Interpreter of variable bsh does not match with type org.python.util.PythonInterpreter of variable jython |