if (blob != null)
{
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);
if (clob != null)
{
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 | if (blob != null)↵ | | 1 | if (clob != null)↵
|
2 | {↵ | | 2 | {↵
|
3 | int len = (int)blob.length();↵ | | 3 | int len = (int)clob.length();↵
|
4 | if (len > 0)↵ | | 4 | if (len > 0)↵
|
5 | {↵ | | 5 | {↵
|
6 | int charsToRead = len;↵ | | 6 | int charsToRead = len;↵
|
7 | if (! _readCompleteBlobs)↵ | | 7 | if ( ! _readCompleteClobs)↵
|
8 | {↵ | | 8 | {↵
|
9 | charsToRead = _readBlobsSize;↵ | | 9 | charsToRead = _readClobsSize;↵
|
10 | }↵ | | 10 | }↵
|
11 | if (charsToRead > len)↵ | | 11 | if (charsToRead > len)↵
|
12 | {↵ | | 12 | {↵
|
13 | charsToRead = len;↵ | | 13 | charsToRead = len;↵
|
14 | }↵ | | 14 | }↵
|
15 | blobData = blob.getBytes(1, charsToRead);↵ | | 15 | clobData = clob.getSubString(1, charsToRead);↵
|
16 | | | 16 |
|
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 |