--- old/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java 2018-10-01 10:04:45.426026000 +0700 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java 2018-10-01 10:04:44.790026000 +0700 @@ -773,7 +773,7 @@ static int[] getRGBvals(Color c) { - int rgbvals[] = new int[3]; + int[] rgbvals = new int[3]; rgbvals[0] = c.getRed(); rgbvals[1] = c.getGreen(); @@ -788,7 +788,7 @@ static final int FOREGROUND_COLOR = 3; public Color[] getGUIcolors() { - Color c[] = new Color[4]; + Color[] c = new Color[4]; float backb, highb, shadowb, hue, saturation; c[BACKGROUND_COLOR] = getWinBackground(); if (c[BACKGROUND_COLOR] == null) { @@ -907,7 +907,7 @@ /** * Draw a 3D oval. */ - public void draw3DOval(Graphics g, Color colors[], + public void draw3DOval(Graphics g, Color[] colors, int x, int y, int w, int h, boolean raised) { Color c = g.getColor(); @@ -918,7 +918,7 @@ g.setColor(c); } - public void draw3DRect(Graphics g, Color colors[], + public void draw3DRect(Graphics g, Color[] colors, int x, int y, int width, int height, boolean raised) { Color c = g.getColor(); @@ -974,8 +974,8 @@ int v1 = thickness + (int)(f * (val - min)); int v2 = (int)(f * vis); int w2 = thickness-4; - int tpts_x[] = new int[3]; - int tpts_y[] = new int[3]; + int[] tpts_x = new int[3]; + int[] tpts_y = new int[3]; if (length < 3*w2 ) { v1 = v2 = 0;