File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/completion/HQLCompletionInfoCollection.java | File path: /sql12/plugins/codecompletion/src/net/sourceforge/squirrel_sql/plugins/codecompletion/CodeCompletionTableInfo.java | |||
Method name: CompletionCandidates getInfosStartingWith(CompletionParser)
|
Method name: ArrayList
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | if(mappedClassInfo.matches(parser, false, false))↵ | 1 | if(↵ | |
2 | {↵ | |||
3 | ciClasses.add(mappedClassInfo);↵ | |||
4 | }↵ | |||
5 | ciAttrs.addAll(mappedClassInfo.getQualifiedMatchingAttributes(parser)); | 2 | colInfo.upperCaseCompletionStringStartsWith(upperCaseColNamePattern))↵ | |
3 | {↵ | |||
4 | ret.add(colInfo);↵ | |||
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 different classes |
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) | 10.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | if (mappedClassInfo.matches(parser, false, false)) |
| 23 | if (colInfo.upperCaseCompletionStringStartsWith(upperCaseColNamePattern)) | ||||||||||||||||||||||||
9 | ciClasses.add(mappedClassInfo); |
| 24 | ret.add(colInfo); | ||||||||||||||||||||||||
10 | ciAttrs.addAll(mappedClassInfo.getQualifiedMatchingAttributes(parser)); | |
Row | Violation |
---|---|
1 | Expression mappedClassInfo.matches(parser,false,false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression colInfo.upperCaseCompletionStringStartsWith(upperCaseColNamePattern) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression mappedClassInfo cannot be unified with expression colInfo , 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, boolean, boolean) |
4 | Expression mappedClassInfo.matches(parser,false,false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression colInfo.upperCaseCompletionStringStartsWith(upperCaseColNamePattern) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.hibernate.completion.HQLCompletionInfoCollection and net.sourceforge.squirrel_sql.plugins.codecompletion.CodeCompletionTableInfo do not have a common superclass |