File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/AliasPropertiesController.java | File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/SyntaxFactory.java | |||
Method name: void onOK()
|
Method name: void addSQLTokenListeners(ISession, SQLTokenListener)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | for (int i = 0; i < _iAliasPropertiesPanelControllers.size(); i++)↵ | 1 | for (int i = 0; i < ↵ | |
2 | {↵ | |||
3 | IAliasPropertiesPanelController aliasPropertiesController = _iAliasPropertiesPanelControllers.get(i);↵ | |||
4 | aliasPropertiesController.applyChanges();↵ | |||
5 | }↵ | |||
6 | performClose(); | 2 | syntaxes.size(); i++)↵ | |
3 | {↵ | |||
4 | SQLSyntax syntax = syntaxes.elementAt(i);↵ | |||
5 | syntax.addSQLTokenListener(tl);↵ | |||
6 |
| |||
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.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.3 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | for (int i = 0; i < _iAliasPropertiesPanelControllers.size(); i++) |
| 8 | for (int i = 0; i < syntaxes.size(); i++) | ||||||||||||||
2 | IAliasPropertiesPanelController aliasPropertiesController = _iAliasPropertiesPanelControllers.get(i); |
| | |||||||||||||||
3 | aliasPropertiesController.applyChanges(); | | ||||||||||||||||
|
| 9 | SQLSyntax syntax = syntaxes.elementAt(i); | |||||||||||||||
| 10 | syntax.addSQLTokenListener(tl); | ||||||||||||||||
4 | performClose(); | |
Row | Violation |
---|---|
1 | Expression _iAliasPropertiesPanelControllers cannot be unified with expression syntaxes , because common superclass java.util.RandomAccess does not declare member(s) public int size() |
2 | Unmatched statement IAliasPropertiesPanelController aliasPropertiesController=_iAliasPropertiesPanelControllers.get(i); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement SQLSyntax syntax=syntaxes.elementAt(i); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | The refactoring of the clones is infeasible, because the number of macthed statements is equal to zero |