|
39 | 39 | * initiators) for creating sessions.
|
40 | 40 | */
|
41 | 41 | public class DefaultSessionFactory implements SessionFactory {
|
42 |
| - private final static Logger log = LoggerFactory.getLogger(DefaultSessionFactory.class); |
43 |
| - private static final SimpleCache<String, DataDictionary> dictionaryCache = new SimpleCache<>(path -> { |
| 42 | + private static final Logger LOG = LoggerFactory.getLogger(DefaultSessionFactory.class); |
| 43 | + private static final SimpleCache<String, DataDictionary> DICTIONARY_CACHE = new SimpleCache<>(path -> { |
44 | 44 | try {
|
45 | 45 | return new DataDictionary(path);
|
46 | 46 | } catch (ConfigError e) {
|
@@ -329,7 +329,7 @@ private ValidationSettings createValidationSettings(SessionID sessionID, Session
|
329 | 329 |
|
330 | 330 | private void validateValidationSettings(ValidationSettings validationSettings) {
|
331 | 331 | if (validationSettings.isFirstFieldInGroupIsDelimiter() && validationSettings.isCheckUnorderedGroupFields()) {
|
332 |
| - log.warn("Setting " + Session.SETTING_FIRST_FIELD_IN_GROUP_IS_DELIMITER |
| 332 | + LOG.warn("Setting " + Session.SETTING_FIRST_FIELD_IN_GROUP_IS_DELIMITER |
333 | 333 | + " requires " + Session.SETTING_VALIDATE_UNORDERED_GROUP_FIELDS + " to be set to false");
|
334 | 334 | }
|
335 | 335 | }
|
@@ -401,7 +401,7 @@ private String toDictionaryPath(String beginString) {
|
401 | 401 |
|
402 | 402 | private DataDictionary getDataDictionary(String path) throws ConfigError {
|
403 | 403 | try {
|
404 |
| - return dictionaryCache.computeIfAbsent(path); |
| 404 | + return DICTIONARY_CACHE.computeIfAbsent(path); |
405 | 405 | } catch (QFJException e) {
|
406 | 406 | final Throwable cause = e.getCause();
|
407 | 407 | if (cause instanceof ConfigError) {
|
|
0 commit comments