added a comment

Change-Id: I064852e27210946caafd3efbf61645b539bced4b
This commit is contained in:
Axel Uhl authored and Henri Kohlberg committed 2018-07-09 09:16:04 +02:00
1 parent f384a85a58
commit d510aaffe5
1 file changed
+1 -1
@@ -144,7 +144,7 @@ public class TimeRangeCache<T> {
// no writer can be active because we're holding the read lock; read access on the lruCache is synchronized using
// the lruCache's mutex; this is necessary because we're using access-based LRU pinging where even getting an entry
// modifies the internal parts of the data structure which is not thread safe.
synchronized (lruCache) {
synchronized (lruCache) { // ping the "perfect match" although it may not even have existed in the cache
lruCache.get(new Util.Pair<TimePoint, TimePoint>(from, to));
}
return result;