--- old/src/java.desktop/share/classes/sun/java2d/pipe/Region.java 2018-10-01 10:03:55.710026000 +0700 +++ new/src/java.desktop/share/classes/sun/java2d/pipe/Region.java 2018-10-01 10:03:55.250026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2016, 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 @@ -267,7 +267,7 @@ return EMPTY_REGION; } - int box[] = new int[4]; + int[] box = new int[4]; ShapeSpanIterator sr = new ShapeSpanIterator(normalize); try { sr.setOutputArea(devBounds); @@ -346,7 +346,7 @@ * This method can also be used to create a simple rectangular * region. */ - public static Region getInstance(int box[]) { + public static Region getInstance(int[] box) { return new Region(box[0], box[1], box[2], box[3]); } @@ -370,7 +370,7 @@ * it must have a Y range equal to the highest Y band in the region and a * higher X coordinate than any of the spans in that band. */ - public static Region getInstance(int box[], SpanIterator si) { + public static Region getInstance(int[] box, SpanIterator si) { Region ret = new Region(box[0], box[1], box[2], box[3]); ret.appendSpans(si); return ret; @@ -411,10 +411,10 @@ int thix = clipScale(hix, sx); int thiy = clipScale(hiy, sy); Region ret = new Region(tlox, tloy, thix, thiy); - int bands[] = this.bands; + int[] bands = this.bands; if (bands != null) { int end = endIndex; - int newbands[] = new int[end]; + int[] newbands = new int[end]; int i = 0; // index for source bands int j = 0; // index for translated newbands int ncol; @@ -488,11 +488,11 @@ return getSafeTranslatedRegion(dx, dy); } Region ret = new Region(tlox, tloy, thix, thiy); - int bands[] = this.bands; + int[] bands = this.bands; if (bands != null) { int end = endIndex; ret.endIndex = end; - int newbands[] = new int[end]; + int[] newbands = new int[end]; ret.bands = newbands; int i = 0; int ncol; @@ -515,10 +515,10 @@ int thix = clipAdd(hix, dx); int thiy = clipAdd(hiy, dy); Region ret = new Region(tlox, tloy, thix, thiy); - int bands[] = this.bands; + int[] bands = this.bands; if (bands != null) { int end = endIndex; - int newbands[] = new int[end]; + int[] newbands = new int[end]; int i = 0; // index for source bands int j = 0; // index for translated newbands int ncol; @@ -746,15 +746,15 @@ private static final int INCLUDE_COMMON = 4; private void filterSpans(Region ra, Region rb, int flags) { - int abands[] = ra.bands; - int bbands[] = rb.bands; + int[] abands = ra.bands; + int[] bbands = rb.bands; if (abands == null) { abands = new int[] {ra.loy, ra.hiy, 1, ra.lox, ra.hix}; } if (bbands == null) { bbands = new int[] {rb.loy, rb.hiy, 1, rb.lox, rb.hix}; } - int box[] = new int[6]; + int[] box = new int[6]; int acolstart = 0; int ay1 = abands[acolstart++]; int ay2 = abands[acolstart++]; @@ -965,7 +965,7 @@ * highest Y band in the region and a higher X coordinate * than any of the spans in that band. */ - private void appendSpan(int box[]) { + private void appendSpan(int[] box) { int spanlox, spanloy, spanhix, spanhiy; if ((spanlox = box[0]) < lox) spanlox = lox; if ((spanloy = box[1]) < loy) spanloy = loy; @@ -1011,7 +1011,7 @@ } } - private void endRow(int box[]) { + private void endRow(int[] box) { int cur = box[4]; int prev = box[5]; if (cur > prev) { @@ -1273,7 +1273,7 @@ /** * Gets the bbox of the available spans, clipped to the OutputArea. */ - public void getBounds(int pathbox[]) { + public void getBounds(int[] pathbox) { pathbox[0] = lox; pathbox[1] = loy; pathbox[2] = hix; @@ -1283,7 +1283,7 @@ /** * Clips the indicated bbox array to the bounds of this Region. */ - public void clipBoxToBounds(int bbox[]) { + public void clipBoxToBounds(int[] bbox) { if (bbox[0] < lox) bbox[0] = lox; if (bbox[1] < loy) bbox[1] = loy; if (bbox[2] > hix) bbox[2] = hix; @@ -1308,7 +1308,7 @@ * Gets a span iterator object that iterates over the spans in this region * but clipped to the bounds given in the argument (xlo, ylo, xhi, yhi). */ - public SpanIterator getSpanIterator(int bbox[]) { + public SpanIterator getSpanIterator(int[] bbox) { SpanIterator result = getSpanIterator(); result.intersectClipBox(bbox[0], bbox[1], bbox[2], bbox[3]); return result; @@ -1395,8 +1395,8 @@ if (this.endIndex != r.endIndex) { return false; } - int abands[] = this.bands; - int bbands[] = r.bands; + int[] abands = this.bands; + int[] bbands = r.bands; for (int i = 0; i < endIndex; i++) { if (abands[i] != bbands[i]) { return false;