data[length++] = (byte)(s >>> 8);
data[length++] = (byte)s;
this.length = length;
return this;
data[length++] = (byte)(s >>> 8);
data[length++] = (byte)s;
this.length = length;
return this;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/objectweb/asm/ByteVector.java
|
|
File path: /jEdit-4.2/src/org/objectweb/asm/ByteVector.java
|
Method name: ByteVector put2(int)
|
|
Method name: ByteVector put12(int, int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | data[length++] = (byte)(s >>> 8);↵ | | 1 | data[length++] = (byte)(s >>> 8);↵
|
2 | data[length++] = (byte)s;↵ | | 2 | data[length++] = (byte)s;↵
|
3 | this.length = length;↵ | | 3 | this.length = length;↵
|
4 | return this; | | 4 | return this;
|
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 declared in the same class |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
5 | data[length++] = (byte)(s >>> 8); | | 6 | data[length++] = (byte)(s >>> 8); |
6 | data[length++] = (byte)s; | | 7 | data[length++] = (byte)s; |
7 | this.length = length; | | 8 | this.length = length; |
8 | return this; | | 9 | return this; |
Precondition Violations (0)
Row |
Violation |