File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DTProperties.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/sqlfilter/SQLFilterClauses.java | |||
Method name: void put(String, String, String)
|
Method name: void put(String, String, String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | HashMap<String, String> h = dataTypes.get(dataTypeName);↵ | 1 | HashMap<String, String> filterData = _sqlClauseInformation.get(tableName);↵ | |
2 | if (h == null) ↵ | 2 | if (filterData == null)↵ | |
3 | {↵ | 3 | {↵ | |
4 | h = new HashMap<String, String>();↵ | 4 | filterData = new HashMap<String, String>();↵ | |
5 | dataTypes.put(dataTypeName, h);↵ | 5 | ↵ | |
6 | }↵ | |||
7 | h.put(propertyName, propertyValue↵ | 6 | }↵ | |
7 | filterData.put(clauseName, clauseInformation);↵ | |||
8 | ); | 8 | _sqlClauseInformation.put(tableName, filterData); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 12 |
Number of mapped statements | 4 |
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) | 1.8 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | HashMap<String, String> h = dataTypes.get(dataTypeName); |
| 1 | HashMap<String, String> filterData = _sqlClauseInformation.get(tableName); | ||||||||||||||||
2 | if (h == null) |
| 2 | if (filterData == null) | ||||||||||||||||
3 | h = new HashMap<String, String>(); |
| 3 | filterData = new HashMap<String, String>(); | ||||||||||||||||
4 | dataTypes.put(dataTypeName, h); |
| | |||||||||||||||||
5 | h.put(propertyName, propertyValue); |
| 4 | filterData.put(clauseName, clauseInformation); | ||||||||||||||||
|
| 5 | _sqlClauseInformation.put(tableName, filterData); |
Row | Violation |
---|---|
1 | Unmatched statement dataTypes.put(dataTypeName,h); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement _sqlClauseInformation.put(tableName,filterData); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |