< prev index next >

src/java.desktop/share/classes/sun/awt/geom/Order1.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2006, 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

@@ -214,11 +214,11 @@
 
     public Curve getReversedCurve() {
         return new Order1(x0, y0, x1, y1, -direction);
     }
 
-    public int compareTo(Curve other, double yrange[]) {
+    public int compareTo(Curve other, double[] yrange) {
         if (!(other instanceof Order1)) {
             return super.compareTo(other, yrange);
         }
         Order1 c1 = (Order1) other;
         if (yrange[1] <= yrange[0]) {

@@ -297,11 +297,11 @@
             y = Math.max(y0, c1.y0);
         }
         return orderof(XforY(y), c1.XforY(y));
     }
 
-    public int getSegment(double coords[]) {
+    public int getSegment(double[] coords) {
         if (direction == INCREASING) {
             coords[0] = x1;
             coords[1] = y1;
         } else {
             coords[0] = x0;
< prev index next >