Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 2 | 0.954 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 375 | E:/TSE/Projects-CloneDR/sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/ImportDataIntoTableExecutor.java |
2 | 12 | 1816 | E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java |
| |||||
private String getQuestionMarks(int count) { StringBuffer result = new StringBuffer(); for (int i = 0; i < count; i++) { result.append("?"); if (i < count - 1) { result.append(", "); } } return result.toString(); } |
| |||||
/** * Generates a string of question marks which are used for creating PreparedStatements. The question marks * are delimited by commas. * * @param count * the number of question marks (representing PS bind variables). * @return */ private static String getQuestionMarks(int count) { StringBuilder result = new StringBuilder(); for (int i = 0; i < count; i++) { result.append("?"); if (i < count - 1) { result.append(", "); } } return result.toString(); } |
| |||
[[#variable1ccdda40]]String getQuestionMarks(int count) { [[#variable1ccddb40]] result = new [[#variable1ccddb40]](); for (int i = 0; i < count; i++) { result.append("?"); if (i < count - 1) { result.append(", "); } } return result.toString(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1ccdda40]] | private |
1 | 2 | [[#1ccdda40]] | /** * Generates a string of question marks which are used for creating PreparedStatements. The question marks * are delimited by commas. * * @param count * the number of question marks (representing PS bind variables). * @return */ private static |
2 | 1 | [[#1ccddb40]] | StringBuffer |
2 | 2 | [[#1ccddb40]] | StringBuilder |