File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/Application.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/Application.java | |||
Method name: void loadSQLHistory()
|
Method name: void loadCellImportExportInfo()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | XMLBeanReader doc = new XMLBeanReader();↵ | 1 | XMLBeanReader doc = new XMLBeanReader();↵ | |
2 | doc.load(new ApplicationFiles().getUserSQLHistoryFile());↵ | 2 | doc.load(new ApplicationFiles().getCellImportExportSelectionsFile());↵ | |
3 | Iterator it = doc.iterator();↵ | 3 | Iterator it = doc.iterator();↵ | |
4 | if (it.hasNext())↵ | 4 | if (it.hasNext())↵ | |
5 | {↵ | 5 | {↵ | |
6 | _sqlHistory = (SQLHistory) it.next();↵ | 6 | saverInstance = (CellImportExportInfoSaver) it.next();↵ | |
7 | } | 7 |
| |
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 declared in the same class |
Number of node comparisons | 10 |
Number of mapped statements | 4 |
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) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | XMLBeanReader doc = new XMLBeanReader(); | 3 | XMLBeanReader doc = new XMLBeanReader(); | |||||||||||
3 | doc.load(new ApplicationFiles().getUserSQLHistoryFile()); |
| 4 | doc.load(new ApplicationFiles().getCellImportExportSelectionsFile()); | ||||||||||
4 | Iterator it = doc.iterator(); | 5 | Iterator it = doc.iterator(); | |||||||||||
5 | if (it.hasNext()) | 6 | if (it.hasNext()) | |||||||||||
6 | _sqlHistory = (SQLHistory)it.next(); |
| | |||||||||||
|
| 7 | saverInstance = (CellImportExportInfoSaver)it.next(); |
Row | Violation |
---|---|
1 | Unmatched statement _sqlHistory=(SQLHistory)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement saverInstance=(CellImportExportInfoSaver)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |