File path: /sql12/plugins/exportconfig/src/net/sourceforge/squirrel_sql/plugins/exportconfig/gui/ExportPanelBuilder.java | File path: /sql12/plugins/exportconfig/src/net/sourceforge/squirrel_sql/plugins/exportconfig/gui/ExportPanelBuilder.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (_exportDriversChk.getModel().isSelected()) {↵ | 1 | if (_exportAliasesChk.getModel().isSelected()) {↵ | |
2 | File f = new File(_exportDriversText.getText()); ↵ | 2 | File f = new File(_exportAliasesText.getText()); ↵ | |
3 | if (!f.exists() || confirmOverwrite(f)) {↵ | 3 | if (!f.exists() || confirmOverwrite(f)) {↵ | |
4 | _app.getDataCache().saveDrivers(f);↵ | 4 | _app.getDataCache().saveAliases(f);↵ | |
5 | }↵ | 5 | }↵ | |
6 | } | 6 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
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) | 60.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | if (_exportDriversChk.getModel().isSelected()) |
| 14 | if (_exportAliasesChk.getModel().isSelected()) | ||||||||||||||
11 | File f = new File(_exportDriversText.getText()); |
| 15 | File f = new File(_exportAliasesText.getText()); | ||||||||||||||
12 | if (!f.exists() || confirmOverwrite(f)) | 16 | if (!f.exists() || confirmOverwrite(f)) | |||||||||||||||
13 | _app.getDataCache().saveDrivers(f); |
| 17 | _app.getDataCache().saveAliases(f); |
Row | Violation |
---|---|
1 | Expression _app.getDataCache().saveDrivers(f) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression _app.getDataCache().saveAliases(f) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression _app.getDataCache().saveDrivers(f) is a void method call, and thus it cannot be parameterized |
4 | Expression _app.getDataCache().saveAliases(f) is a void method call, and thus it cannot be parameterized |