You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that LRUMap is not synchronized and is not thread-safe. If you wish to use this map from multiple threads concurrently, you must use appropriate synchronization. The simplest approach is to wrap this map using Collections.synchronizedMap(Map). This class may throw NullPointerException's when accessed by concurrent threads.
I think it would be good to add a lock directly in the CachingParser.
The text was updated successfully, but these errors were encountered:
The class
CachingParser
uses aorg.apache.commons.collections4.map.LRUMap
internally.The JavaDoc clearly states:
I think it would be good to add a lock directly in the
CachingParser
.The text was updated successfully, but these errors were encountered: