super();
if (title == null)
{
throw new IllegalArgumentException("Title == null");
}
_title = title;
_hint = hint != null ? hint : title;
_firstRowOnly = firstRowOnly;
super();
if (title == null)
{
throw new IllegalArgumentException("Title == null");
}
_title = title;
_hint = hint != null ? hint : title;
_firstRowOnly = firstRowOnly;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/tab/BaseSQLTab.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/tabs/BasePreparedStatementTab.java
|
Method name: void BaseSQLTab(String, String, boolean)
|
|
Method name: void BasePreparedStatementTab(String, String, boolean)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | super();↵ | | 1 | super();↵
|
2 | if (title == null)↵ | | 2 | if (title == null)↵
|
3 | {↵ | | 3 | {↵
|
4 | throw new IllegalArgumentException("Title == null"); ↵ | | 4 | throw new IllegalArgumentException("Title == null");↵
|
5 | }↵ | | 5 | }↵
|
6 | _title = title;↵ | | 6 | _title = title;↵
|
7 | _hint = hint != null ? hint : title;↵ | | 7 | _hint = hint != null ? hint : title;↵
|
8 | _firstRowOnly = firstRowOnly; | | 8 | _firstRowOnly = firstRowOnly;
|
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 6 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super(); | | 1 | super(); |
2 | if (title == null) | | 2 | if (title == null) |
3 | throw new IllegalArgumentException("Title == null"); | | 3 | throw new IllegalArgumentException("Title == null"); |
4 | _title = title; | | 4 | _title = title; |
5 | _hint = hint != null ? hint : title; | | 5 | _hint = hint != null ? hint : title; |
6 | _firstRowOnly = firstRowOnly; | | 6 | _firstRowOnly = firstRowOnly; |
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 |