File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/ImportDataIntoTableExecutor.java | File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java | |||
Method name: String getQuestionMarks(int)
|
Method name: String getQuestionMarks(int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | StringBuffer result = new StringBuffer();↵ | 1 | StringBuilder result = new StringBuilder();↵ | |
2 | for (int i = 0; i < count; i++) {↵ | 2 | for (int i = 0; i < count; i++)↵ | |
3 | ↵ | |||
3 | {↵ | |||
4 | result.append("?");↵ | 4 | result.append("?");↵ | |
5 | if (i < count-1) {↵ | 5 | if (i < count↵ | |
6 | result.append(", ");↵ | |||
7 | }↵ | |||
8 | }↵ | |||
9 | ↵ | 6 | - 1)↵ | |
7 | {↵ | |||
8 | result.append(", ");↵ | |||
9 | }↵ | |||
10 | }↵ | |||
10 | return result.toString(); | 11 | return result.toString(); | |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 10 |
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) | 2.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer result = new StringBuffer(); |
| 1 | StringBuilder result = new StringBuilder(); | ||||||||||||||||
2 | for (int i = 0; i < count; i++) | 2 | for (int i = 0; i < count; i++) | |||||||||||||||||
3 | result.append("?"); |
| 3 | result.append("?"); | ||||||||||||||||
4 | if (i < count - 1) | 4 | if (i < count - 1) | |||||||||||||||||
5 | result.append(", "); |
| 5 | result.append(", "); | ||||||||||||||||
6 | return result.toString(); |
| 6 | return result.toString(); |
Row | Violation |
---|