return join(
args.iterator(),
new StringTransformer() {
public String transform(String string) {
return "cast( ? as varchar(32672) )";
}
},
new StringJoinTemplate() {
public String getBeginning() {
return "varchar( ";
}
public String getSeparator() {
return " || ";
}
public String getEnding() {
return " )";
return join(
args.iterator(),
new StringTransformer() {
public String transform(String string) {
return string;
}
},
new StringJoinTemplate() {
public String getBeginning() {
return "(";
}
public String getSeparator() {
return "||";
}
public String getEnding() {
return ")";
Clone fragments detected by clone detection tool
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:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
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 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |