int newLength = rawBuffer.Buffer.length
+ Math.max(dataBuffer.Count - dataBuffer.LineStart,
rawBuffer.Buffer.length);
char[] holder = new char[newLength];
System.arraycopy(rawBuffer.Buffer, 0, holder, 0,
rawBuffer.Position);
rawBuffer.Buffer = holder;
int newLength = columnBuffer.Buffer.length
+ Math.max(
dataBuffer.Position - dataBuffer.ColumnStart,
columnBuffer.Buffer.length);
char[] holder = new char[newLength];
System.arraycopy(columnBuffer.Buffer, 0, holder, 0,
columnBuffer.Position);
columnBuffer.Buffer = holder;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dataimport/src/com/csvreader/CsvReader.java
|
|
File path: /sql12/plugins/dataimport/src/com/csvreader/CsvReader.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | int newLength = rawBuffer.Buffer.length↵ | | 1 | int newLength = columnBuffer.Buffer.length↵
|
2 | + Math.max(↵ | | 2 | + Math.max(↵
|
3 | dataBuffer.Count - dataBuffer.LineStart,↵ | | 3 | dataBuffer.Position - dataBuffer.ColumnStart,↵
|
4 | rawBuffer.Buffer.length);↵ | | 4 | columnBuffer.Buffer.length);↵
|
|
5 | char[] holder = new char[newLength];↵ | | 5 | char[] holder = new char[newLength];↵
|
|
6 | System.arraycopy(rawBuffer.Buffer, 0, holder, 0,↵ | | 6 | System.arraycopy(columnBuffer.Buffer, 0, holder, 0,↵
|
7 | rawBuffer.Position);↵ | | 7 | columnBuffer.Position);↵
|
|
8 | rawBuffer.Buffer = holder;↵ | | 8 | columnBuffer.Buffer = holder;↵
|
9 | | | 9 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |