Hey guys I am currently looking at some code from ...
# tornadofx
n
Hey guys I am currently looking at some code from the `SceneBuilder`project and I can't wrap my head around it. https://bitbucket.org/gluon-oss/scenebuilder/src/6727faef1349b6ad603fe20a772b83d29d3c8c83/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/images/ImageUtils.java?at=default&fileviewer=file-view-default I am wondering why they used a `WeakHashMap`instead of a normal one. Wouldn't it be enough for implementing the image cache, to just wrap the images in a
WeakReference
?