File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/function/DerbyConcatFunction.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/function/DerbyConcatFunction.java | |||
Method name: String render(List, SessionFactoryImplementor)
|
Method name: String render(List, SessionFactoryImplementor)
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | return join(↵ | 1 | return join(↵ | |
2 | args.iterator(),↵ | 2 | args.iterator(),↵ | |
3 | new StringTransformer() {↵ | 3 | new StringTransformer() {↵ | |
4 | public String transform(String string) {↵ | 4 | public String transform(String string) {↵ | |
5 | return "cast( ? as varchar(32672) )";↵ | 5 | return string;↵ | |
6 | }↵ | 6 | }↵ | |
7 | },↵ | 7 | },↵ | |
8 | new StringJoinTemplate() {↵ | 8 | new StringJoinTemplate() {↵ | |
9 | public String getBeginning() {↵ | 9 | public String getBeginning() {↵ | |
10 | return "varchar( ";↵ | 10 | return "(";↵ | |
11 | }↵ | 11 | }↵ | |
12 | public String getSeparator() {↵ | 12 | public String getSeparator() {↵ | |
13 | return " || ";↵ | 13 | return "||";↵ | |
14 | }↵ | 14 | }↵ | |
15 | public String getEnding() {↵ | 15 | public String getEnding() {↵ | |
16 | return " )";↵ | 16 | return ")";↵ | |
17 | }↵ | 17 | }↵ | |
18 | }↵ | 18 | }↵ | |
19 | ); | 19 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | return join(args.iterator(), new StringTransformer() {...}, new StringJoinTemplate() {...}); |
| 10 | return join(args.iterator(), new StringTransformer() {...}, new StringJoinTemplate() {...}); |
Row | Violation |
---|---|
1 | Not all possible execution flows end in a return statement |