super(runtime, klass);
this.layout = layout;
this.memory = memory;
this.referenceCache = new IRubyObject[layout.getReferenceFieldCount()];
super(runtime, klass);
this.io = io;
this.size = size;
this.typeSize = typeSize;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/ext/ffi/Struct.java
|
|
File path: /jruby-1.4.0/src/org/jruby/ext/ffi/AbstractMemory.java
|
Method name: void Struct(Ruby, RubyClass, StructLayout, IRubyObject)
|
|
Method name: void AbstractMemory(Ruby, RubyClass, MemoryIO, long, int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | super(runtime, klass);↵ | | 1 | super(runtime, klass);↵
|
2 | this.layout = layout;↵ | | 2 | this.↵
|
3 | this.memory = memory;↵ | | |
|
4 | this.referenceCache = new IRubyObject[layout.getReferenceFieldCount()]↵ | | 3 | io = io;↵
|
| | | 4 | this.size = size;↵
|
5 | ; | | 5 | this.typeSize = typeSize;
|
See real code fragment |
|
See real code fragment |
Summary
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 different classes having the same super class |
Number of node comparisons | 16 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super(runtime, klass); | | 1 | super(runtime, klass); |
| | | 2 | this.io = io; |
2 | this.layout = layout; | | | |
| | | 3 | this.size = size; |
3 | this.memory = memory; | | | |
| | | 4 | this.typeSize = typeSize; |
4 | this.referenceCache = new IRubyObject[layout.getReferenceFieldCount()]; | | | |
Precondition Violations (0)
Row |
Violation |