aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/tools/zusammen-tools/src/main
diff options
context:
space:
mode:
authorsiddharth0905 <siddharth.singh4@amdocs.com>2018-08-13 22:09:54 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-08-16 19:27:58 +0000
commit054dea4806c2d9a37b4f3cf72510dfbe6d47c6f9 (patch)
tree6006e56902efa0dd28ab96f53037f276f68205b7 /openecomp-be/tools/zusammen-tools/src/main
parent3a9c18a098c3f5c519fb0dbed36384af6ccaf151 (diff)
Fortify SDC issue
Fortify SDC issue Change-Id: I7acf3420080ed4c7045aeda1cb1ff0d31d9b5228 Issue-ID: SDC-1644 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
Diffstat (limited to 'openecomp-be/tools/zusammen-tools/src/main')
-rw-r--r--openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java b/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java
index 249ba5e145..d36b41f7c2 100644
--- a/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java
+++ b/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java
@@ -132,10 +132,12 @@ public class ImportSingleTable {
private String createQuery(TableData tableData) {
ColumnDefinition def = tableData.definitions.iterator().next();
- StringBuilder sb = new StringBuilder();
+ StringBuilder sb = new StringBuilder(1024);
sb.append(INSERT_INTO).append(def.getKeyspace()).append(".").append(def.getTable());
- sb.append(tableData.definitions.stream().map(ColumnDefinition::getName).collect(Collectors.joining(" , ", " ( ", " ) ")));
- sb.append(VALUES).append(tableData.definitions.stream().map(definition -> "?").collect(Collectors.joining(" , ", " ( ", " ) "))).append(";");
+ sb.append(tableData.definitions.stream().map(ColumnDefinition::getName)
+ .collect(Collectors.joining(" , ", " ( ", " ) ")));
+ sb.append(VALUES).append(tableData.definitions.stream().map(definition -> "?")
+ .collect(Collectors.joining(" , ", " ( ", " ) "))).append(";");
return sb.toString();
}