Last active
November 29, 2016 15:12
-
-
Save chethann/586bde967d651060215a9e965ed5969e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Iterator<Map.Entry<String, CloseableReference<CloseableImage>>> entries = imageRefMap.entrySet().iterator(); | |
while (entries.hasNext()) { | |
Map.Entry<String, CloseableReference<CloseableImage>> entry = entries.next(); | |
CloseableReference<CloseableImage> closeableRef = entry.getValue(); | |
if(closeableRef != null){ | |
closeableRef.close(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment