import org.sleuthkit.datamodel.TskCoreException;
public enum ThumbnailCache {
instance;
private static final int MAX_THUMBNAIL_SIZE = 300;
private static final Logger LOGGER = Logger.getLogger(ThumbnailCache.class.getName());
<BUG>private final Cache<Long, Optional<Image>> cache = CacheBuilder.newBuilder()
.maximumSize(1000)</BUG>
.softValues()
.expireAfterAccess(10, TimeUnit.MINUTES).build();
public static ThumbnailCache getDefault() {

import org.sleuthkit.datamodel.TskCoreException;
public enum ThumbnailCache {
instance;
private static final int MAX_THUMBNAIL_SIZE = 300;
private static final Logger LOGGER = Logger.getLogger(ThumbnailCache.class.getName());
private final Cache<Long, Image> cache = CacheBuilder.newBuilder()
.maximumSize(1000)
.softValues()
.expireAfterAccess(10, TimeUnit.MINUTES).build();
public static ThumbnailCache getDefault() {
