if(simpleInfo.matches(parser))
{
ret.add(simpleInfo);
}
if (productName != null) {
if (productName.contains(sybaseTwelveVersionId)) {
result = "";
}
}
Clone fragments detected by clone detection tool
File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/completion/HQLCompletionInfoCollection.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/DatabaseObjectInfo.java
|
Method name: CompletionCandidates getInfosStartingWith(CompletionParser)
|
|
Method name: String checkSybaseIdentifierQuoteString(ISQLDatabaseMetaData, String)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | if(simpleInfo.matches(parser))↵ | | 1 | if↵
|
2 | {↵ | | |
|
3 | ret.add(simpleInfo)↵ | | 2 | (productName != null) {↵
|
| | | 3 | if (productName.contains(sybaseTwelveVersionId)) {↵
|
4 | ;↵ | | 4 | result = "";↵
|
5 | ↵ | | 5 | }↵
|
6 | } | | 6 | }
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |