--- old/src/demo/share/jfc/J2Ddemo/java2d/demos/Arcs_Curves/Ellipses.java 2018-10-03 16:37:59.769008000 +0700 +++ new/src/demo/share/jfc/J2Ddemo/java2d/demos/Arcs_Curves/Ellipses.java 2018-10-03 16:37:59.245008000 +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 @@ -44,12 +44,12 @@ @SuppressWarnings("serial") public final class Ellipses extends AnimatingSurface { - private static Color colors[] = { + private static Color[] colors = { BLUE, CYAN, GREEN, MAGENTA, ORANGE, PINK, RED, YELLOW, LIGHT_GRAY, WHITE }; private Ellipse2D.Float[] ellipses; - private double esize[]; - private float estroke[]; + private double[] esize; + private float[] estroke; private double maxSize; public Ellipses() { @@ -102,7 +102,7 @@ } } - public static void main(String argv[]) { + public static void main(String[] argv) { createDemoFrame(new Ellipses()); } }