if ( this.debug )
{
System.err.println
( "SkipRecord: recIdx = " + this.currRecIdx
+ " blkIdx = " + this.currBlkIdx );
}
if ( this.debug )
{
System.err.println
( "WriteRecord: recIdx = " + this.currRecIdx
+ " blkIdx = " + this.currBlkIdx );
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/installer/TarBuffer.java
|
|
File path: /jEdit-4.2/src/installer/TarBuffer.java
|
Method name: void skipRecord()
|
|
Method name: void writeRecord(byte[], int)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | if ( this.debug )↵ | | 1 | if ( this.debug )↵
|
2 | {↵ | | 2 | {↵
|
3 | System.err.println↵ | | 3 | System.err.println↵
|
4 | ( "SkipRecord: recIdx = " + this.currRecIdx↵ | | 4 | ( "WriteRecord: recIdx = " + this.currRecIdx↵
|
5 | + " blkIdx = " + this.currBlkIdx );↵ | | 5 | + " blkIdx = " + this.currBlkIdx );↵
|
6 | } | | 6 | }
|
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 4 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 2 |
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.6 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | if (this.debug) | | 1 | if (this.debug) |
2 | System.err.println("SkipRecord: recIdx = " + this.currRecIdx + " blkIdx = " + this.currBlkIdx); | | 2 | System.err.println("WriteRecord: recIdx = " + this.currRecIdx + " blkIdx = " + this.currBlkIdx); |
Precondition Violations (0)
Row |
Violation |