Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/flickr4java/flickr/util/ImageUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down