--- old/src/java.desktop/share/classes/sun/awt/image/JPEGImageDecoder.java 2018-10-01 10:02:53.758026000 +0700 +++ new/src/java.desktop/share/classes/sun/awt/image/JPEGImageDecoder.java 2018-10-01 10:02:53.318026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2012, 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 @@ -63,14 +63,14 @@ initIDs(InputStreamClass); RGBcolormodel = new DirectColorModel(24, 0xff0000, 0xff00, 0xff); ARGBcolormodel = ColorModel.getRGBdefault(); - byte g[] = new byte[256]; + byte[] g = new byte[256]; for (int i = 0; i < 256; i++) { g[i] = (byte) i; } Graycolormodel = new IndexColorModel(8, 256, g, g, g); } - private native void readImage(InputStream is, byte buf[]) + private native void readImage(InputStream is, byte[] buf) throws ImageFormatException, IOException; Hashtable props = new Hashtable<>(); @@ -115,7 +115,7 @@ return true; } - public boolean sendPixels(int pixels[], int y) { + public boolean sendPixels(int[] pixels, int y) { int count = setPixels(0, y, pixels.length, 1, colormodel, pixels, 0, pixels.length); if (count <= 0) { @@ -124,7 +124,7 @@ return !aborted; } - public boolean sendPixels(byte pixels[], int y) { + public boolean sendPixels(byte[] pixels, int y) { int count = setPixels(0, y, pixels.length, 1, colormodel, pixels, 0, pixels.length); if (count <= 0) {