File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/completion/HQLCompletionInfoCollection.java | File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/completion/HQLCompletionInfoCollection.java | |||
Method name: CompletionCandidates getInfosStartingWith(CompletionParser)
|
Method name: CompletionCandidates getInfosStartingWith(CompletionParser)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | if(aliasInfo.matches(parser))↵ | 1 | if(simpleInfo.matches(parser))↵ | |
2 | {↵ | 2 | {↵ | |
3 | ciClasses.add(aliasInfo);↵ | 3 | ↵ | |
4 | }↵ | |||
5 | ciAttrs.addAll(aliasInfo.getQualifiedMatchingAttributes(parser)); | 4 | ret.add(simpleInfo);↵ | |
5 |
| |||
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.8 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | if (aliasInfo.matches(parser)) |
| 32 | if (simpleInfo.matches(parser)) | ||||||||||||||||
5 | ciClasses.add(aliasInfo); |
| 33 | ret.add(simpleInfo); | ||||||||||||||||
6 | ciAttrs.addAll(aliasInfo.getQualifiedMatchingAttributes(parser)); | |
Row | Violation |
---|---|
1 | Expression aliasInfo cannot be unified with expression simpleInfo , because common superclass net.sourceforge.squirrel_sql.fw.completion.CompletionInfo does not declare member(s) public boolean matches(net.sourceforge.squirrel_sql.fw.completion.util.CompletionParser) |