jdk/test/java/awt/image/multiresolution/MultiResolutionCachedImageTest.java
changeset 32682 6f1200d8999d
parent 32125 008f0a0d17e0
equal deleted inserted replaced
32681:7fabd3486dea 32682:6f1200d8999d
    96             super(size, size, getSizes(size), (w, h) -> createImage(w, h));
    96             super(size, size, getSizes(size), (w, h) -> createImage(w, h));
    97             this.size = size;
    97             this.size = size;
    98         }
    98         }
    99 
    99 
   100         @Override
   100         @Override
   101         public Image getResolutionVariant(int width, int height) {
   101         public Image getResolutionVariant(double width, double height) {
   102             if (width == size || height == size) {
   102             if (width == size || height == size) {
   103                 throw new RuntimeException("Base image is requested!");
   103                 throw new RuntimeException("Base image is requested!");
   104             }
   104             }
   105             return super.getResolutionVariant(width, height);
   105             return super.getResolutionVariant(width, height);
   106         }
   106         }