Fixes unknown type error in cloneImage function.
@@ -235,7 +235,7 @@ public final class ColoredImageCache {
* If the image is null.
*/
private static BufferedImage cloneImage(final @NonNull BufferedImage image) {
- final BufferedImage newImage = new BufferedImage(image.getWidth(), image.getHeight(), image.getType());
+ final BufferedImage newImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB);
final Graphics g = newImage.getGraphics();
g.drawImage(image, 0, 0, null);
g.dispose();
