< prev index next >

src/java.desktop/share/classes/sun/java2d/pipe/RegionClipSpanIterator.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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

@@ -77,14 +77,14 @@
     // The bounding box of the input Region. Used for click
     // rejection of iterator spans
     int rgnbndslox, rgnbndsloy, rgnbndshix, rgnbndshiy;
 
     // The array used to hold coordinates from the region iterator
-    int rgnbox[] = new int[4];
+    int[] rgnbox = new int[4];
 
     // The array used to hold coordinates from the span iterator
-    int spanbox[] = new int[4];
+    int[] spanbox = new int[4];
 
     // True if the next iterator span should be read on the next
     // iteration of the main nextSpan() loop
     boolean doNextSpan;
 

@@ -136,11 +136,11 @@
 
     /*
      * Gets the bbox of the available path segments, clipped to the
      * Region.
      */
-    public void getPathBox(int pathbox[]) {
+    public void getPathBox(int[] pathbox) {
         int[] rgnbox = new int[4];
         rgn.getBounds(rgnbox);
         spanIter.getPathBox(pathbox);
 
         if (pathbox[0] < rgnbox[0]) {

@@ -172,11 +172,11 @@
 
     /*
      * Fetches the next span that needs to be operated on.
      * If the return value is false then there are no more spans.
      */
-    public boolean nextSpan(int resultbox[]) {
+    public boolean nextSpan(int[] resultbox) {
         if (done) {
             return false;
         }
 
         int resultlox, resultloy, resulthix, resulthiy;
< prev index next >