diff options
author | 2018-02-12 17:29:10 +0000 | |
---|---|---|
committer | 2018-02-12 17:29:10 +0000 | |
commit | 6c52841ea781d70f7c88c066454c55055918be25 (patch) | |
tree | 9e24565f5af20241eb0baedad2f9178e8a6ca92f /src/main | |
parent | cc8fdf4d2931d1ca65db709ee39dce23018d85df (diff) | |
parent | a2d1d5113dece9e3a2257d418ce12d83b2d1d71a (diff) |
Merge "Sonar Minor fix"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/dcae/inventory/dbthings/StringListArgument.java | 4 |
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; + } } |