--- old/src/java.desktop/share/classes/java/awt/image/RGBImageFilter.java 2018-10-01 09:59:48.750026000 +0700 +++ new/src/java.desktop/share/classes/java/awt/image/RGBImageFilter.java 2018-10-01 09:59:48.282026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -146,10 +146,10 @@ */ public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int mapsize = icm.getMapSize(); - byte r[] = new byte[mapsize]; - byte g[] = new byte[mapsize]; - byte b[] = new byte[mapsize]; - byte a[] = new byte[mapsize]; + byte[] r = new byte[mapsize]; + byte[] g = new byte[mapsize]; + byte[] b = new byte[mapsize]; + byte[] a = new byte[mapsize]; icm.getReds(r); icm.getGreens(g); icm.getBlues(b); @@ -192,7 +192,7 @@ * @see #filterRGB */ public void filterRGBPixels(int x, int y, int w, int h, - int pixels[], int off, int scansize) { + int[] pixels, int off, int scansize) { int index = off; for (int cy = 0; cy < h; cy++) { for (int cx = 0; cx < w; cx++) { @@ -222,12 +222,12 @@ * @see #filterRGBPixels */ public void setPixels(int x, int y, int w, int h, - ColorModel model, byte pixels[], int off, + ColorModel model, byte[] pixels, int off, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, off, scansize); } else { - int filteredpixels[] = new int[w]; + int[] filteredpixels = new int[w]; int index = off; for (int cy = 0; cy < h; cy++) { for (int cx = 0; cx < w; cx++) { @@ -259,12 +259,12 @@ * @see #filterRGBPixels */ public void setPixels(int x, int y, int w, int h, - ColorModel model, int pixels[], int off, + ColorModel model, int[] pixels, int off, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, off, scansize); } else { - int filteredpixels[] = new int[w]; + int[] filteredpixels = new int[w]; int index = off; for (int cy = 0; cy < h; cy++) { for (int cx = 0; cx < w; cx++) {