Skip to content

Commit

Permalink
Make result set value retriever thread-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacqu committed Dec 17, 2018
1 parent d2c71eb commit f6c1f08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
* Retrieves values from a SQL {@link ResultSet}.
Expand All @@ -17,7 +17,7 @@
public class ResultSetValueRetriever<C> {

private final C context;
private final Map<ColumnType, ResultSetGetter> resultSetGetters = new HashMap<>();
private final Map<ColumnType, ResultSetGetter> resultSetGetters = new ConcurrentHashMap<>();

/**
* Constructor.
Expand Down

0 comments on commit f6c1f08

Please sign in to comment.