File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/SQLAliasSchemaDetailProperties.java | File path: /sql12/test/mockobjects/net/sourceforge/squirrel_sql/fw/sql/MockSQLDriver.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 13 | Number of AST nodes: 13 | |||
1 | if (this == obj)↵ | 1 | if (this == obj)↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | if (obj == null)↵ | 3 | if (obj == null)↵ | |
4 | return false;↵ | 4 | return false;↵ | |
5 | if (getClass() != obj.getClass())↵ | 5 | if (getClass() != obj.getClass())↵ | |
6 | return false;↵ | 6 | return false;↵ | |
7 | final SQLAliasSchemaDetailProperties other = (SQLAliasSchemaDetailProperties) obj;↵ | |||
8 | if (_schemaName == null) {↵ | |||
9 | if (other._schemaName != null)↵ | |||
10 | ↵ | 7 | final MockSQLDriver other = (MockSQLDriver) obj;↵ | |
8 | if (id == null)↵ | |||
9 | {↵ | |||
11 | return false;↵ | 10 | if (other.id != null) return false;↵ | |
12 | } ↵ | 11 | }↵ | |
13 | else if (!_schemaName.equals(other._schemaName))↵ | 12 | else if (!id.equals(other.↵ | |
14 | return false;↵ | 13 | id)) return false;↵ | |
15 | return true; | 14 | return true; | |
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) | 1.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 34 |
Number of mapped statements | 12 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (this == obj) | 1 | if (this == obj) | ||||||||||||||||||||||||||||
2 | return true; | 2 | return true; | ||||||||||||||||||||||||||||
3 | if (obj == null) | 3 | if (obj == null) | ||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||
5 | if (getClass() != obj.getClass()) |
| 5 | if (getClass() != obj.getClass()) | |||||||||||||||||||||||||||
6 | return false; | 6 | return false; | ||||||||||||||||||||||||||||
| 7 | final MockSQLDriver other = (MockSQLDriver)obj; | |||||||||||||||||||||||||||||
7 | final SQLAliasSchemaDetailProperties other = (SQLAliasSchemaDetailProperties)obj; | | |||||||||||||||||||||||||||||
8 | if (_schemaName == null) |
| 8 | if (id == null) | |||||||||||||||||||||||||||
9 | if (other._schemaName != null) |
| 9 | if (other.id != null) | |||||||||||||||||||||||||||
10 | return false; | 10 | return false; | ||||||||||||||||||||||||||||
11 | else if (!_schemaName.equals(other._schemaName)) |
| 11 | else if (!id.equals(other.id)) | |||||||||||||||||||||||||||
12 | return false; | 12 | return false; | ||||||||||||||||||||||||||||
13 | return true; | 13 | return true; |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |
2 | Type java.lang.String of variable _schemaName does not match with type net.sourceforge.squirrel_sql.fw.id.IIdentifier of variable id |
3 | Type java.lang.String of variable other._schemaName does not match with type net.sourceforge.squirrel_sql.fw.id.IIdentifier of variable other.id |
4 | Expression other._schemaName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression other.id cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type java.lang.String of variable other._schemaName does not match with type net.sourceforge.squirrel_sql.fw.id.IIdentifier of variable other.id |
7 | Type java.lang.String of variable other._schemaName does not match with type net.sourceforge.squirrel_sql.fw.id.IIdentifier of variable other.id |
8 | Expression other._schemaName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression other.id cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Type java.lang.String of variable other._schemaName does not match with type net.sourceforge.squirrel_sql.fw.id.IIdentifier of variable other.id |
11 | Type java.lang.String of variable _schemaName does not match with type net.sourceforge.squirrel_sql.fw.id.IIdentifier of variable id |
12 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.gui.db.SQLAliasSchemaDetailProperties and net.sourceforge.squirrel_sql.fw.sql.MockSQLDriver do not have a common superclass |