From 955627fe45800d0d3eb5a8bc75d70671c005f9bc Mon Sep 17 00:00:00 2001 From: Kevin Strong Date: Fri, 19 Jul 2024 15:30:00 -0500 Subject: [PATCH] Explicitly mark objects as unused in ImageUtilities.java --- src/main/java/com/flickr4java/flickr/util/ImageUtilities.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/flickr4java/flickr/util/ImageUtilities.java b/src/main/java/com/flickr4java/flickr/util/ImageUtilities.java index 1808ff82..4a7fa1e6 100644 --- a/src/main/java/com/flickr4java/flickr/util/ImageUtilities.java +++ b/src/main/java/com/flickr4java/flickr/util/ImageUtilities.java @@ -28,7 +28,7 @@ public BufferedImage bufferImage(Image image, int type) { private void waitForImage(BufferedImage bufferedImage) { final ImageLoadStatus imageLoadStatus = new ImageLoadStatus(); - bufferedImage.getHeight(new ImageObserver() { + var unused = bufferedImage.getHeight(new ImageObserver() { public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (infoflags == ALLBITS) { imageLoadStatus.heightDone = true; @@ -37,7 +37,7 @@ public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, in return false; } }); - bufferedImage.getWidth(new ImageObserver() { + unused = bufferedImage.getWidth(new ImageObserver() { public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (infoflags == ALLBITS) { imageLoadStatus.widthDone = true;