File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/action/AbstractTableListCommand.java | File path: /sql12/plugins/firebird/src/org/firebirdsql/squirrel/act/AbstractMultipleSQLCommand.java | |||
Method name: void AbstractTableListCommand(ISession, MysqlPlugin)
|
Method name: void AbstractMultipleSQLCommand(ISession, IPlugin)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | super();↵ | 1 | super();↵ | |
2 | if (session == null)↵ | 2 | if (session == null)↵ | |
3 | {↵ | |||
4 | ↵ | 3 | {↵ | |
5 | throw new IllegalArgumentException("ISession == null");↵ | 4 | throw new IllegalArgumentException("ISession == null");↵ | |
6 | }↵ | |||
7 | ↵ | 5 | }↵ | |
8 | if (plugin == null)↵ | 6 | if (plugin == null)↵ | |
9 | {↵ | |||
10 | ↵ | 7 | {↵ | |
11 | throw new IllegalArgumentException("MysqlPlugin == null");↵ | 8 | throw new IllegalArgumentException("IPlugin == null");↵ | |
12 | }↵ | |||
13 | ↵ | 9 | }↵ | |
14 | _session = session;↵ | 10 | _session = session;↵ | |
15 | _plugin = plugin; | 11 | _plugin = plugin; | |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 17 |
Number of mapped statements | 7 |
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) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(); |
| 1 | super(); | |||||||||||||
2 | if (session == null) | 2 | if (session == null) | ||||||||||||||
3 | throw new IllegalArgumentException("ISession == null"); | 3 | throw new IllegalArgumentException("ISession == null"); | ||||||||||||||
4 | if (plugin == null) |
| 4 | if (plugin == null) | |||||||||||||
5 | throw new IllegalArgumentException("MysqlPlugin == null"); |
| 5 | throw new IllegalArgumentException("IPlugin == null"); | |||||||||||||
6 | _session = session; | 6 | _session = session; | ||||||||||||||
7 | _plugin = plugin; |
| 7 | _plugin = plugin; |
Row | Violation |
---|---|
1 | Super constructor call super(); cannot be extracted from constructor |
2 | Super constructor call super(); cannot be extracted from constructor |