aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/dcae/inventory/dbthings/StringListArgument.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/dcae/inventory/dbthings/StringListArgument.java b/src/main/java/org/onap/dcae/inventory/dbthings/StringListArgument.java
index 2e70550..aa41ac6 100644
--- a/src/main/java/org/onap/dcae/inventory/dbthings/StringListArgument.java
+++ b/src/main/java/org/onap/dcae/inventory/dbthings/StringListArgument.java
@@ -45,11 +45,11 @@ public class StringListArgument implements ArgumentFactory<List<String>> {
@Override
public Argument build(Class<?> expectedType, List<String> value, StatementContext statementContext) {
- Argument argument = (int position, PreparedStatement statement, StatementContext ctx) -> {
+ return (int position, PreparedStatement statement, StatementContext ctx) -> {
Array values = statement.getConnection().createArrayOf("varchar", value.toArray());
statement.setArray(position, values);
};
- return argument;
+
}
}