--- old/src/java.desktop/unix/classes/sun/awt/X11/XScrollPanePeer.java 2018-10-01 10:04:59.446026000 +0700 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XScrollPanePeer.java 2018-10-01 10:04:59.018026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 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 @@ -279,7 +279,7 @@ return; } int sx, sy; - Color colors[] = getGUIcolors(); + Color[] colors = getGUIcolors(); if (sp.getScrollbarDisplayPolicy() == ScrollPane.SCROLLBARS_NEVER) { sx = -x; @@ -353,7 +353,7 @@ } void repaintScrollBars() { Graphics g = getGraphics(); - Color colors[] = getGUIcolors(); + Color[] colors = getGUIcolors(); if (g != null) { try { paintScrollBars(g, colors); @@ -364,7 +364,7 @@ } public void repaintScrollbarRequest(XScrollbar sb) { Graphics g = getGraphics(); - Color colors[] = getGUIcolors(); + Color[] colors = getGUIcolors(); if (g != null) { try { if (sb == vsb) { @@ -397,7 +397,7 @@ * @param colors the colors used to draw the scrollbar * @param paintAll paint the whole scrollbar if true, just the thumb if false */ - void paintHorScrollbar(Graphics g, Color colors[], boolean paintAll) { + void paintHorScrollbar(Graphics g, Color[] colors, boolean paintAll) { if (hsbSpace <= 0) { return; } @@ -433,7 +433,7 @@ * @param colors the colors used to draw the scrollbar * @param paintAll paint the whole scrollbar if true, just the thumb if false */ - void paintVerScrollbar(Graphics g, Color colors[], boolean paintAll) { + void paintVerScrollbar(Graphics g, Color[] colors, boolean paintAll) { if (vsbSpace <= 0) { return; }