Description
JdbcUtils contains a pool to cache SqlDialect objects. Currently, it relies on multiple maps and a synchronized get method. Although I am not very familiar with that code, it seems the implementation could be made simpler and more efficient by using a Guava cache. In addition, since we would not have a single synchronized get method, multiple threads could concurrently create dialects for distinct data sources.