Skip to content

Commit

Permalink
#1: Code simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenetics committed Jan 6, 2017
1 parent bb21d1b commit 8ac618f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpx.jdbc/src/main/java/io/jenetics/jpx/jdbc/DAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static <T, K> List<Stored<T>> put(
{
final Map<K, Stored<T>> existing = select.apply(values).stream()
.collect(toMap(
value -> key.apply(value.optional().orElse(null)),
value -> key.apply(value.value()),
value -> value,
(a, b) -> b));

Expand Down

0 comments on commit 8ac618f

Please sign in to comment.