File path: /sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/DiffExecutor.java | File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/CopyExecutor.java | |||
Method name: void DiffExecutor(SessionInfoProvider)
|
Method name: void CopyExecutor(SessionInfoProvider)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | prov = p;↵ | 1 | prov = p;↵ | |
2 | sourceSession = prov.getDiffSourceSession();↵ | 2 | sourceSession = prov.getCopySourceSession();↵ | |
3 | destSession = prov.getDiffDestSession(); | 3 | destSession = prov.getCopyDestSession(); | |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 1 | prov = p; | |||||||||||||||||
1 | prov = p; |
| | |||||||||||||||||
2 | sourceSession = prov.getDiffSourceSession(); |
| 2 | sourceSession = prov.getCopySourceSession(); | ||||||||||||||||
3 | destSession = prov.getDiffDestSession(); |
| 3 | destSession = prov.getCopyDestSession(); |
Row | Violation |
---|---|
1 | Unmatched statement prov=p; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement prov=p; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Expression prov.getDiffSourceSession() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression prov.getCopySourceSession() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type net.sourceforge.squirrel_sql.plugins.dbdiff.SessionInfoProvider of variable prov does not match with type net.sourceforge.squirrel_sql.plugins.dbcopy.SessionInfoProvider of variable prov |
6 | Expression prov.getDiffDestSession() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression prov.getCopyDestSession() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type net.sourceforge.squirrel_sql.plugins.dbdiff.SessionInfoProvider of variable prov does not match with type net.sourceforge.squirrel_sql.plugins.dbcopy.SessionInfoProvider of variable prov |