File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/PluginManager.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/PluginManager.java | |||
Method name: void aliasCopied(SQLAlias, SQLAlias)
|
Method name: void aliasRemoved(SQLAlias)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | for (Iterator<IPlugin> i = _loadedPlugins.values().iterator(); i.hasNext();)↵ | 1 | for (Iterator<IPlugin> i = _loadedPlugins.values().iterator(); i.hasNext();)↵ | |
2 | {↵ | 2 | {↵ | |
3 | IPlugin plugin = i.next();↵ | 3 | IPlugin plugin = i.next();↵ | |
4 | plugin.aliasCopied(source, target);↵ | 4 | plugin.aliasRemoved(alias);↵ | |
5 | } | 5 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 7.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | for (Iterator<IPlugin> i = _loadedPlugins.values().iterator(); i.hasNext(); ) | 1 | for (Iterator<IPlugin> i = _loadedPlugins.values().iterator(); i.hasNext(); ) | ||||||||||||||||||||||
2 | IPlugin plugin = i.next(); | 2 | IPlugin plugin = i.next(); | ||||||||||||||||||||||
3 | plugin.aliasCopied(source, target); |
| 3 | plugin.aliasRemoved(alias); |
Row | Violation |
---|---|
1 | Expression plugin.aliasCopied(source,target) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression plugin.aliasRemoved(alias) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression plugin.aliasCopied(source,target) is a void method call, and thus it cannot be parameterized |
4 | Expression plugin.aliasRemoved(alias) is a void method call, and thus it cannot be parameterized |
5 | Expression plugin.aliasCopied(source,target) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression plugin.aliasRemoved(alias) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression plugin.aliasCopied(source,target) is a void method call, and thus it cannot be parameterized |
8 | Expression plugin.aliasRemoved(alias) is a void method call, and thus it cannot be parameterized |