--- old/src/java.desktop/share/classes/java/awt/geom/CubicCurve2D.java 2018-10-01 09:58:57.198026000 +0700 +++ new/src/java.desktop/share/classes/java/awt/geom/CubicCurve2D.java 2018-10-01 09:58:56.730026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 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 @@ -860,7 +860,7 @@ * the specified offset. * @since 1.2 */ - public static double getFlatnessSq(double coords[], int offset) { + public static double getFlatnessSq(double[] coords, int offset) { return getFlatnessSq(coords[offset + 0], coords[offset + 1], coords[offset + 2], coords[offset + 3], coords[offset + 4], coords[offset + 5], @@ -880,7 +880,7 @@ * the specified offset. * @since 1.2 */ - public static double getFlatness(double coords[], int offset) { + public static double getFlatness(double[] coords, int offset) { return getFlatness(coords[offset + 0], coords[offset + 1], coords[offset + 2], coords[offset + 3], coords[offset + 4], coords[offset + 5], @@ -1000,9 +1000,9 @@ * the 6 right coordinates * @since 1.2 */ - public static void subdivide(double src[], int srcoff, - double left[], int leftoff, - double right[], int rightoff) { + public static void subdivide(double[] src, int srcoff, + double[] left, int leftoff, + double[] right, int rightoff) { double x1 = src[srcoff + 0]; double y1 = src[srcoff + 1]; double ctrlx1 = src[srcoff + 2]; @@ -1065,7 +1065,7 @@ * @return the number of roots, or -1 if the equation is a constant. * @since 1.2 */ - public static int solveCubic(double eqn[]) { + public static int solveCubic(double[] eqn) { return solveCubic(eqn, eqn); } @@ -1086,7 +1086,7 @@ * @return the number of roots, or -1 if the equation is a constant * @since 1.3 */ - public static int solveCubic(double eqn[], double res[]) { + public static int solveCubic(double[] eqn, double[] res) { // From Graphics Gems: // http://tog.acm.org/resources/GraphicsGems/gems/Roots3And4.c final double d = eqn[3]; @@ -1369,7 +1369,7 @@ return (x1 < 0 && x2 > 0) || (x1 > 0 && x2 < 0); } - private static double solveEqn(double eqn[], int order, double t) { + private static double solveEqn(double[] eqn, int order, double t) { double v = eqn[order]; while (--order >= 0) { v = v * t + eqn[order];