ProducesRequestCondition caches accepted media types

Closes gh-22644
This commit is contained in:
Rossen Stoyanchev
2019-04-03 14:55:51 -04:00
parent 254f06e1a1
commit 72119ac076
4 changed files with 23 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ public abstract class MimeTypeUtils {
private static final ConcurrentLruCache<String, MimeType> cachedMimeTypes =
new ConcurrentLruCache<>(32, MimeTypeUtils::parseMimeTypeInternal);
new ConcurrentLruCache<>(64, MimeTypeUtils::parseMimeTypeInternal);
@Nullable
private static volatile Random random;