File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/MapDataSet.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/HashtableDataSet.java | |||
Method name: boolean next(IMessageHandler)
|
Method name: boolean next(IMessageHandler)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 6 | |||
1 | _curRow[0] = null;↵ | 1 | _curRow[0] = null;↵ | |
2 | _curRow[1] = null;↵ | |||
3 | if (_rowKeys.hasNext())↵ | 2 | if (_rowKeys.hasNext())↵ | |
4 | {↵ | 3 | {↵ | |
5 | _curRow[0] = _rowKeys.next();↵ | 4 | _curRow[0] = _rowKeys.next();↵ | |
6 | }↵ | 5 | }↵ | |
7 | if (_curRow[0] != null)↵ | 6 | if (_curRow[0] != null)↵ | |
8 | {↵ | 7 | {↵ | |
9 | _curRow[1] = _src.get(_curRow[0]);↵ | 8 | _curRow[1] = _src.get(_curRow[0]);↵ | |
10 | }↵ | 9 | }↵ | |
11 | return _curRow[0] != null; | 10 |
| |
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) | 0.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 16 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 1.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 1 | _curRow[0] = null; | ||||||||||||
1 | _curRow[0] = null; |
| | ||||||||||||
2 | _curRow[1] = null; |
| | ||||||||||||
3 | if (_rowKeys.hasNext()) |
| 2 | if (_rowKeys.hasNext()) | |||||||||||
|
| 3 | _curRow[0] = _rowKeys.next(); | ||||||||||||
4 | _curRow[0] = _rowKeys.next(); |
| | ||||||||||||
5 | if (_curRow[0] != null) |
| 4 | if (_curRow[0] != null) | |||||||||||
|
| 5 | _curRow[1] = _src.get(_curRow[0]); | ||||||||||||
6 | _curRow[1] = _src.get(_curRow[0]); |
| | ||||||||||||
7 | return _curRow[0] != null; |
| 6 | return _curRow[0] != null; |
Row | Violation |
---|---|
1 | Unmatched statement _curRow[0]=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement _curRow[0]=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Unmatched statement _curRow[1]=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Type java.util.Iterator<> of variable _rowKeys does not match with type java.util.Iterator<java.lang.String> of variable _rowKeys |
5 | Unmatched statement _curRow[0]=_rowKeys.next(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Unmatched statement _curRow[0]=_rowKeys.next(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
7 | Type java.lang.Object[] of variable _curRow does not match with type java.lang.String[] of variable _curRow |
8 | Unmatched statement _curRow[1]=_src.get(_curRow[0]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
9 | Unmatched statement _curRow[1]=_src.get(_curRow[0]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
10 | Type java.lang.Object[] of variable _curRow does not match with type java.lang.String[] of variable _curRow |