File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/AddSequenceCommand.java | File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/RenameViewCommand.java | |||
Method name: void executeScript(String)
|
Method name: void executeScript(String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | CommandExecHandler handler = new CommandExecHandler(_session);↵ | 1 | CommandExecHandler handler = new CommandExecHandler(_session);↵ | |
2 | SQLExecuterTask executer = new SQLExecuterTask(_session, script, handler);↵ | 2 | SQLExecuterTask executer = new SQLExecuterTask(_session, script, handler);↵ | |
3 | executer.run(); // Execute the sql synchronously↵ | 3 | executer.run(); // Execute the sql synchronously↵ | |
4 | _session.getApplication().getThreadPool().addTask(new Runnable()↵ | 4 | _session.getApplication().getThreadPool().addTask(new Runnable()↵ | |
5 | {↵ | 5 | {↵ | |
6 | public void run()↵ | 6 | public void run()↵ | |
7 | {↵ | 7 | {↵ | |
8 | GUIUtils.processOnSwingEventThread(new Runnable()↵ | 8 | GUIUtils.processOnSwingEventThread(new Runnable()↵ | |
9 | {↵ | 9 | {↵ | |
10 | public void run()↵ | 10 | public void run()↵ | |
11 | {↵ | 11 | {↵ | |
12 | customDialog.setVisible(false);↵ | 12 | customDialog.setVisible(false);↵ | |
13 | _session.getSchemaInfo().reload(_info[0]);↵ | 13 | _session.getSchemaInfo().reloadAll();↵ | |
14 | }↵ | 14 | }↵ | |
15 | });↵ | 15 | });↵ | |
16 | }↵ | 16 | }↵ | |
17 | }); | 17 |
| |
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 having the same super class |
Number of node comparisons | 6 |
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 | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | CommandExecHandler handler = new CommandExecHandler(_session); | 1 | CommandExecHandler handler = new CommandExecHandler(_session); | |||||||||||||||||||||
2 | SQLExecuterTask executer = new SQLExecuterTask(_session, script, handler); | 2 | SQLExecuterTask executer = new SQLExecuterTask(_session, script, handler); | |||||||||||||||||||||
3 | executer.run(); | 3 | executer.run(); | |||||||||||||||||||||
4 | _session.getApplication().getThreadPool().addTask(new Runnable() {...}); |
| 4 | _session.getApplication().getThreadPool().addTask(new Runnable() {...}); |
Row | Violation |
---|---|
1 | Expression _session.getSchemaInfo().reload(_info[0]) is a void method call, and thus it cannot be parameterized |
2 | Expression _session.getSchemaInfo().reloadAll() is a void method call, and thus it cannot be parameterized |
3 | Expression _session.getSchemaInfo().reload(_info[0]) is a void method call, and thus it cannot be parameterized |
4 | Expression _session.getSchemaInfo().reloadAll() is a void method call, and thus it cannot be parameterized |