if( inUse16[ i ] )
{
bsW( 1, 1 );
}
else
{
bsW( 1, 0 );
}
if( m_inUse[ i * 16 + j ] )
{
bsW( 1, 1 );
}
else
{
bsW( 1, 0 );
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/installer/CBZip2OutputStream.java
|
|
File path: /jEdit-4.2/src/installer/CBZip2OutputStream.java
|
Method name: void sendMTFValues()
|
|
Method name: void sendMTFValues()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if( inUse16[ i ] )↵ | | 1 | if( m_inUse[ i ↵
|
| | | 2 | * 16 + j ] )↵
|
2 | {↵ | | 3 | ↵
|
| | | 4 | {↵
|
3 | bsW( 1, 1 );↵ | | 5 | bsW( 1, 1 );↵
|
4 | }↵ | | 6 | ↵
|
| | | 7 | }↵
|
5 | else↵ | | 8 | else↵
|
6 | {↵ | | 9 | {↵
|
7 | bsW( 1, 0 );↵ | | 10 | bsW( 1, 0 );↵
|
8 | } | | 11 | }
|
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 12 |
-
{Refactorable}
Mapping Summary
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) | 15.4 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
160 | if (inUse16[i]) | | 166 | if (m_inUse[i * 16 + j]) |
161 | | | 167 | |
| | | | |
162 | | | 168 | |
Precondition Violations (0)
Row |
Violation |