super();
if (session == null)
throw new IllegalArgumentException("ISession == null");
if (tableInfo == null)
throw new IllegalArgumentException("ITableInfo == null");
_session = session;
_plugin = plugin;
_tableInfo = tableInfo;
_indexName = indexName;
super();
if (session == null)
throw new IllegalArgumentException("ISession == null");
if (tableInfo == null)
throw new IllegalArgumentException("ITableInfo == null");
_session = session;
_plugin = plugin;
_tableInfo = tableInfo;
_indexName = indexName;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/action/ShowStatisticsCommand.java
|
|
File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/action/IndexDefragCommand.java
|
Method name: void ShowStatisticsCommand(ISession, MssqlPlugin, ITableInfo, String)
|
|
Method name: void IndexDefragCommand(ISession, MssqlPlugin, ITableInfo, String)
|
Number of AST nodes: 9
|
|
Number of AST nodes: 9
|
|
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 (tableInfo == null)↵ | | 4 | if (tableInfo == null)↵
|
5 | throw new IllegalArgumentException("ITableInfo == null");↵ | | 5 | throw new IllegalArgumentException("ITableInfo == null");↵
|
|
6 | _session = session;↵ | | 6 | _session = session;↵
|
7 | _plugin = plugin;↵ | | 7 | _plugin = plugin;↵
|
8 | _tableInfo = tableInfo;↵ | | 8 | _tableInfo = tableInfo;↵
|
9 | _indexName = indexName; | | 9 | _indexName = indexName;
|
See real code fragment |
|
See real code fragment |
Summary
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 | 24 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 9 |
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.5 |
Clone type | Type 1 |
Mapped Statements
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 (tableInfo == null) | | 4 | if (tableInfo == null) |
5 | throw new IllegalArgumentException("ITableInfo == null"); | | 5 | throw new IllegalArgumentException("ITableInfo == null"); |
6 | _session = session; | | 6 | _session = session; |
7 | _plugin = plugin; | | 7 | _plugin = plugin; |
8 | _tableInfo = tableInfo; | | 8 | _tableInfo = tableInfo; |
9 | _indexName = indexName; | | 9 | _indexName = indexName; |
Precondition Violations (2)
Row |
Violation |
1 | Super constructor call super(); cannot be extracted from constructor |
2 | Super constructor call super(); cannot be extracted from constructor |