Skip to content

Commit

Permalink
Update AbstractLocalizedTextProvider.java
Browse files Browse the repository at this point in the history
Applied code review comments from JCgH4164838Gh792C124B5 into account
  • Loading branch information
davoustp committed Mar 22, 2021
1 parent 69669d6 commit 280f25d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ abstract class AbstractLocalizedTextProvider implements LocalizedTextProvider {

private final ConcurrentMap<MessageFormatKey, MessageFormat> messageFormats = new ConcurrentHashMap<>();
private final ConcurrentMap<Integer, List<String>> classLoaderMap = new ConcurrentHashMap<>();
private final ConcurrentMap<String,Boolean> missingBundles = new ConcurrentHashMap<>();
private final ConcurrentMap<String, Boolean> missingBundles = new ConcurrentHashMap<>();
private final ConcurrentMap<Integer, ClassLoader> delegatedClassLoaderMap = new ConcurrentHashMap<>();

/**
Expand Down Expand Up @@ -411,11 +411,11 @@ public ResourceBundle findResourceBundle(String aBundleName, Locale locale) {
}
} catch (MissingResourceException e) {
LOG.debug("Missing resource bundle [{}]!", aBundleName, e);
missingBundles.put(key, Boolean.TRUE);
missingBundles.putIfAbsent(key, Boolean.TRUE);
}
} else {
LOG.debug("Missing resource bundle [{}]!", aBundleName);
missingBundles.put(key, Boolean.TRUE);
missingBundles.putIfAbsent(key, Boolean.TRUE);
}
}
return bundle;
Expand Down

0 comments on commit 280f25d

Please sign in to comment.