File path: /jruby-1.4.0/src/org/jruby/compiler/ir/IR_Builder.java | File path: /jruby-1.4.0/src/org/jruby/compiler/ir/IR_Builder.java | |||
Method name: Operand buildDSymbol(Node, IR_Scope)
|
Method name: Operand buildDXStr(DXStrNode, IR_Scope)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | List<Operand> strPieces = new ArrayList<Operand>();↵ | 1 | List<Operand> strPieces = new ArrayList<Operand>();↵ | |
2 | for (Node n : node.childNodes())↵ | 2 | for (Node nextNode : dstrNode.childNodes())↵ | |
3 | strPieces.add(build(n, s));↵ | 3 | strPieces.add(build(nextNode, m));↵ | |
4 | return new DynamicSymbol(new CompoundString(strPieces)); | 4 | return new BacktickString(strPieces); | |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 8 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 48.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | List<Operand> strPieces = new ArrayList<Operand>(); | 1 | List<Operand> strPieces = new ArrayList<Operand>(); | |||||||||||||||||
2 | for (Node n : node.childNodes()) |
| 2 | for (Node nextNode : dstrNode.childNodes()) | ||||||||||||||||
3 | strPieces.add(build(n, s)); |
| 3 | strPieces.add(build(nextNode, m)); | ||||||||||||||||
| 4 | return new BacktickString(strPieces); | ||||||||||||||||||
4 | return new DynamicSymbol(new CompoundString(strPieces)); | |
Row | Violation |
---|