--- old/src/demo/share/jfc/J2Ddemo/java2d/demos/Colors/BullsEye.java 2018-10-03 16:38:21.457008000 +0700 +++ new/src/demo/share/jfc/J2Ddemo/java2d/demos/Colors/BullsEye.java 2018-10-03 16:38:19.469008000 +0700 @@ -1,6 +1,6 @@ /* * - * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -53,7 +53,7 @@ @Override public void render(int w, int h, Graphics2D g2) { - Color reds[] = { RED.darker(), RED }; + Color[] reds = { RED.darker(), RED }; for (int N = 0; N < 18; N++) { float i = (N + 2) / 2.0f; float x = (5 + i * (w / 2 / 10)); @@ -70,7 +70,7 @@ } } - public static void main(String s[]) { + public static void main(String[] s) { createDemoFrame(new BullsEye()); } }