[OpenJDK 2D-Dev] [9] RFR: JDK-6379088, , Suboptimal expression in javax.imageio.ImageTypeSpecifier.getBitsPerBand(int)
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Wed Mar 16 20:09:34 UTC 2016
+1
On 16.03.16 12:16, Jayathirth D V wrote:
> Change is fine. Looks like this is the only place in ImageTypeSpecifier where we are not using short-circuit logical "or".
>
> -----Original Message-----
> From: prasanta sadhukhan
> Sent: Tuesday, March 15, 2016 5:36 PM
> To: Sergey Bylokhov; Jayathirth D V; 2d-dev at openjdk.java.net
> Subject: [9] RFR: JDK-6379088,,Suboptimal expression in javax.imageio.ImageTypeSpecifier.getBitsPerBand(int)
>
> Hi All,
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-6379088
> webrev: http://cr.openjdk.java.net/~psadhukhan/6379088/webrev.00/
>
> Please review a simple fix where we should be using short-circuit logical operators so that if left side of the expression is false, right side will not be evaluated.
> I intend to put noreg-trivial label for this fix.
>
> Regards
> Prasanta
>
--
Best regards, Sergey.
More information about the 2d-dev
mailing list