public static String getBooleanValue(String orig,
ISQLDatabaseMetaData md)
{
for (int i = 0; i < _booleans.length; i++) {
if(_booleans[i].productMatches(md)) {
return _booleans[i].getBooleanValue(orig);
}
}
return orig;
public static String escapeSQL(String sql, ISQLDatabaseMetaData md)
{
for (int i = 0; i < _escapes.length; i++)
{
if(_escapes[i].productMatches(md))
{
return _escapes[i].escapeSQL(sql);
}
}
return sql;
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DatabaseSpecificBooleanValue.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DatabaseSpecificEscape.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public static String getBooleanValue(String orig, ↵ | | 1 | public static String ↵
|
2 | ISQLDatabaseMetaData md)↵ | | 2 | escapeSQL(String sql, ISQLDatabaseMetaData md)↵
|
3 | {↵ | | 3 | {↵
|
4 | for (int i = 0; i < _booleans.length; i++) {↵ | | 4 | for (int i = 0; i < _escapes.length; i++)↵
|
5 | ↵ | | 5 | {↵
|
6 | if(_booleans[i].productMatches(md)) {↵ | | 6 | if(_escapes[i].productMatches(md))↵
|
|
7 | ↵ | | 7 | {↵
|
8 | return _booleans[i].getBooleanValue(orig);↵ | | 8 | return _↵
|
9 | ↵ | | 9 | escapes[i].escapeSQL(sql);↵
|
10 | }↵ | | 10 | }↵
|
11 | }↵ | | 11 | }↵
|
12 | ↵ | | |
|
13 | return orig;↵ | | 12 | return sql;↵
|
14 | | | 13 |
|
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 |