File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLPanel.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLResultExecuterPanel.java | |||
Method name: void propertiesHaveChanged(String)
|
Method name: void propertiesHaveChanged(String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | SetAutoCommitTask task = new SetAutoCommitTask();↵ | 1 | SetAutoCommitTask task = new SetAutoCommitTask();↵ | |
2 | if (SwingUtilities.isEventDispatchThread()) {↵ | 2 | if (SwingUtilities.isEventDispatchThread()) {↵ | |
3 | _session.getApplication().getThreadPool().addTask(task);↵ | 3 | _session.getApplication().getThreadPool().addTask(task);↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | task.run();↵ | 5 | task.run();↵ | |
6 | } | 6 |
| |
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.7 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 3 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3 | SetAutoCommitTask task = new SetAutoCommitTask(); | |||||||||||||
5 | SetAutoCommitTask task = new SetAutoCommitTask(); | | |||||||||||||
6 | if (SwingUtilities.isEventDispatchThread()) | 4 | if (SwingUtilities.isEventDispatchThread()) | ||||||||||||
7 | _session.getApplication().getThreadPool().addTask(task); |
| 5 | _session.getApplication().getThreadPool().addTask(task); | |||||||||||
else | else | ||||||||||||||
8 | task.run(); |
| 6 | task.run(); |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.client.session.mainpanel.SQLPanel.SetAutoCommitTask of variable task does not match with type net.sourceforge.squirrel_sql.client.session.mainpanel.SQLResultExecuterPanel.SetAutoCommitTask of variable task |
2 | Type net.sourceforge.squirrel_sql.client.session.mainpanel.SQLPanel.SetAutoCommitTask of variable task does not match with type net.sourceforge.squirrel_sql.client.session.mainpanel.SQLResultExecuterPanel.SetAutoCommitTask of variable task |