[OpenJDK 2D-Dev] [11] RFR: [JDK-8194489] Incorrect size computation at BandedSampleModel.createDataBuffer
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Jan 5 22:51:46 UTC 2018
Hello Prahalad,
On Jan 4, 2018, at 9:30 PM, Prahalad Kumar Narayanan <prahalad.kumar.narayanan at oracle.com> wrote:
> Request your time to review the fix for the bug:
> JDK-8194489 Incorrect size computation at BandedSampleModel . createDataBuffer
https://bugs.openjdk.java.net/browse/JDK-8194489
> Kindly review the changes at your convenience & share your feedback.
> Link: http://cr.openjdk.java.net/~pnarayanan/8194489/webrev.00/
In general I think this looks good. A few comments:
BandedSampleModel
L193-196 and 203-207: In general I think it’s better for method-internal comments to use the “//“ form instead of the “/*…*/“ form.
BandedSampleModelSizeTest
Instead of defining the utility methods compareSamples(int[],int[]) and initSamples(int[],int) you might consider simply using j.u.Arrays.equals(int[],int[]) and j.u.Arrays.fill(int[],int), respectively.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20180105/1ab363c5/attachment.html>
More information about the 2d-dev
mailing list