File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/DumpApplicationCommand.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/DumpApplicationCommand.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | File tempFile = File.createTempFile(PREFIX, SUFFIX);↵ | 1 | File tempFile = File.createTempFile(PREFIX, SUFFIX);↵ | |
2 | _app.getDataCache().saveAliases(tempFile);↵ | 2 | _app.getDataCache().saveDrivers(tempFile);↵ | |
3 | files.add(tempFile);↵ | 3 | files.add(tempFile);↵ | |
4 | //i18n[DumpApplicationCommand.title.aliases=Aliases]↵ | 4 | //i18n[DumpApplicationCommand.title.drivers=Drivers]↵ | |
5 | titles.add(s_stringMgr.getString("DumpApplicationCommand.title.aliases")); | 5 | titles.add(s_stringMgr.getString("DumpApplicationCommand.title.drivers")); | |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | File tempFile = File.createTempFile(PREFIX, SUFFIX); | 16 | File tempFile = File.createTempFile(PREFIX, SUFFIX); | |||||||||||||||
22 | _app.getDataCache().saveAliases(tempFile); |
| 17 | _app.getDataCache().saveDrivers(tempFile); | ||||||||||||||
23 | files.add(tempFile); | 18 | files.add(tempFile); | |||||||||||||||
24 | titles.add(s_stringMgr.getString("DumpApplicationCommand.title.aliases")); |
| 19 | titles.add(s_stringMgr.getString("DumpApplicationCommand.title.drivers")); |
Row | Violation |
---|---|
1 | Expression _app.getDataCache().saveAliases(tempFile) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression _app.getDataCache().saveDrivers(tempFile) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression _app.getDataCache().saveAliases(tempFile) is a void method call, and thus it cannot be parameterized |
4 | Expression _app.getDataCache().saveDrivers(tempFile) is a void method call, and thus it cannot be parameterized |