Skip to content

Commit

Permalink
Fixed use of Caffeine cache, avoiding AccessControlExcepton warnings …
Browse files Browse the repository at this point in the history
…in logs
  • Loading branch information
Lingvist-L committed Jun 16, 2023
1 parent d2d1a4e commit a0b1835
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ private CachingMorphAnalyzer(
(PrivilegedAction<LoadingCache<String, List<ParsedWord>>>) () ->
Caffeine.newBuilder()
.maximumSize(cacheSize)
.executor(Runnable::run)
.build(super::parse)
);
}
Expand Down

0 comments on commit a0b1835

Please sign in to comment.