Skip to content

Commit

Permalink
fix typo: cachedFormatter (micronaut-projects#11150)
Browse files Browse the repository at this point in the history
  • Loading branch information
PiyalAhmed authored Sep 6, 2024
1 parent 212d946 commit 6d41516
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ private <T extends TemporalAccessor> void addTemporalStringConverters(MutableCon

private DateTimeFormatter getFormatter(String pattern, ConversionContext context) {
var key = pattern + context.getLocale();
var cachedFormater = formattersCache.get(key);
if (cachedFormater != null) {
return cachedFormater;
var cachedFormatter = formattersCache.get(key);
if (cachedFormatter != null) {
return cachedFormatter;
}
var formatter = DateTimeFormatter.ofPattern(pattern, context.getLocale());
formattersCache.put(key, formatter);
Expand Down

0 comments on commit 6d41516

Please sign in to comment.