int len = (int)blob.length();
if (len > 0)
{
int charsToRead = len;
if (! _readCompleteBlobs)
{
charsToRead = _readBlobsSize;
}
if (charsToRead > len)
{
charsToRead = len;
}
blobData = blob.getBytes(1, charsToRead);
}
int len = (int)clob.length();
if (len > 0)
{
int charsToRead = len;
if ( ! _readCompleteClobs)
{
charsToRead = _readClobsSize;
}
if (charsToRead > len)
{
charsToRead = len;
}
clobData = clob.getSubString(1, charsToRead);
}
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBlob.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | int len = (int)blob.length();↵ | | 1 | int len = (int)clob.length();↵
|
2 | if (len > 0)↵ | | 2 | if (len > 0)↵
|
3 | {↵ | | 3 | {↵
|
4 | int charsToRead = len;↵ | | 4 | int charsToRead = len;↵
|
5 | if (! _readCompleteBlobs)↵ | | 5 | if ( ! _readCompleteClobs)↵
|
6 | {↵ | | 6 | {↵
|
7 | charsToRead = _readBlobsSize;↵ | | 7 | charsToRead = _readClobsSize;↵
|
8 | }↵ | | 8 | }↵
|
9 | if (charsToRead > len)↵ | | 9 | if (charsToRead > len)↵
|
10 | {↵ | | 10 | {↵
|
11 | charsToRead = len;↵ | | 11 | charsToRead = len;↵
|
12 | }↵ | | 12 | }↵
|
13 | blobData = blob.getBytes(1, charsToRead);↵ | | 13 | clobData = clob.getSubString(1, charsToRead);↵
|
14 | } | | 14 | }
|
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 |