< prev index next >
src/java.desktop/share/classes/java/awt/geom/Area.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -142,11 +142,11 @@
// three subdivided cubic curves (2+6+6+6=20)
// AND
// 0-2 horizontal splitting parameters
// OR
// 3 parametric equation derivative coefficients
- double coords[] = new double[23];
+ double[] coords = new double[23];
double movx = 0, movy = 0;
double curx = 0, cury = 0;
double newx, newy;
while (!pi.isDone()) {
switch (pi.currentSegment(coords)) {
@@ -700,12 +700,12 @@
thiscurve = null;
}
}
}
- public int currentSegment(float coords[]) {
- double dcoords[] = new double[6];
+ public int currentSegment(float[] coords) {
+ double[] dcoords = new double[6];
int segtype = currentSegment(dcoords);
int numpoints = (segtype == SEG_CLOSE ? 0
: (segtype == SEG_QUADTO ? 2
: (segtype == SEG_CUBICTO ? 3
: 1)));
@@ -713,11 +713,11 @@
coords[i] = (float) dcoords[i];
}
return segtype;
}
- public int currentSegment(double coords[]) {
+ public int currentSegment(double[] coords) {
int segtype;
int numpoints;
if (prevcurve != null) {
// Need to finish off junction between curves
if (thiscurve == null || thiscurve.getOrder() == 0) {
< prev index next >