super();
if (session == null)
throw new IllegalArgumentException("ISession == null");
if (dbObjs == null)
throw new IllegalArgumentException("IDatabaseObjectInfo array is null");
_session = session;
_plugin = plugin;
_dbObjs = dbObjs;
super();
if (session == null)
throw new IllegalArgumentException("ISession == null");
if (dbs == null)
throw new IllegalArgumentException("Databases array is null");
_session = session;
_plugin = plugin;
_dbs = dbs;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/action/ScriptProcedureCommand.java
|
|
File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/action/TruncateLogCommand.java
|
Method name: void ScriptProcedureCommand(ISession, MssqlPlugin, IDatabaseObjectInfo[])
|
|
Method name: void TruncateLogCommand(ISession, MssqlPlugin, IDatabaseObjectInfo[])
|
Number of AST nodes: 8
|
|
Number of AST nodes: 8
|
|
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 (dbObjs == null)↵ | | 4 | if (dbs == null)↵
|
5 | throw new IllegalArgumentException("IDatabaseObjectInfo array is null");↵ | | 5 | throw new IllegalArgumentException("Databases array is null");↵
|
|
6 | _session = session;↵ | | 6 | _session = session;↵
|
7 | _plugin = plugin;↵ | | 7 | _plugin = plugin;↵
|
8 | _dbObjs = dbObjs; | | 8 | _dbs = dbs;
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 20 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 8 |
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 |
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 (dbObjs == null) | | 4 | if (dbs == null) |
5 | throw new IllegalArgumentException("IDatabaseObjectInfo array is null"); | | 5 | throw new IllegalArgumentException("Databases array is null"); |
6 | _session = session; | | 6 | _session = session; |
7 | _plugin = plugin; | | 7 | _plugin = plugin; |
8 | _dbObjs = dbObjs; | | 8 | _dbs = dbs; |
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 |