super();
if (plugin == null)
{
throw new IllegalArgumentException("Null LAFPlugin passed");
}
if (lafRegister == null)
{
throw new IllegalArgumentException("Null LAFRegister passed");
}
_plugin = plugin;
//_prefs = plugin.getLAFPreferences();
_lafRegister = lafRegister;
super();
if (plugin == null)
{
throw new IllegalArgumentException("Null LAFPlugin passed");
}
if (lafRegister == null)
{
throw new IllegalArgumentException("Null LAFRegister passed");
}
_plugin = plugin;
//_prefs = plugin.getLAFPreferences();
_lafRegister = lafRegister;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFPreferencesTab.java
|
|
File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFFontsTab.java
|
Method name: void LAFPreferencesTab(LAFPlugin, LAFRegister)
|
|
Method name: void LAFFontsTab(LAFPlugin, LAFRegister)
|
Number of AST nodes: 7
|
|
Number of AST nodes: 7
|
|
1 | super();↵ | | 1 | super();↵
|
2 | if (plugin == null)↵ | | 2 | if (plugin == null)↵
|
3 | {↵ | | 3 | {↵
|
4 | throw new IllegalArgumentException("Null LAFPlugin passed");↵ | | 4 | throw new IllegalArgumentException("Null LAFPlugin passed");↵
|
5 | }↵ | | 5 | }↵
|
6 | if (lafRegister == null)↵ | | 6 | if (lafRegister == null)↵
|
7 | {↵ | | 7 | {↵
|
8 | throw new IllegalArgumentException("Null LAFRegister passed");↵ | | 8 | throw new IllegalArgumentException("Null LAFRegister passed");↵
|
9 | }↵ | | 9 | }↵
|
10 | _plugin = plugin;↵ | | 10 | _plugin = plugin;↵
|
11 | //_prefs = plugin.getLAFPreferences();↵ | | 11 | //_prefs = plugin.getLAFPreferences();↵
|
12 | _lafRegister = lafRegister; | | 12 | _lafRegister = lafRegister;
|
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 | 17 |
-
{Non-refactorable}
Mapping Summary
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.2 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super(); | | 1 | super(); |
2 | if (plugin == null) | | 2 | if (plugin == null) |
3 | throw new IllegalArgumentException("Null LAFPlugin passed"); | | 3 | throw new IllegalArgumentException("Null LAFPlugin passed"); |
4 | if (lafRegister == null) | | 4 | if (lafRegister == null) |
5 | throw new IllegalArgumentException("Null LAFRegister passed"); | | 5 | throw new IllegalArgumentException("Null LAFRegister passed"); |
6 | _plugin = plugin; | | 6 | _plugin = plugin; |
7 | _lafRegister = lafRegister; | | 7 | _lafRegister = lafRegister; |
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 |