Integrated: 8336879: Always true condition 'img != null' in GTKPainter.paintPopupMenuBackground
Abhishek Kumar
abhiscxk at openjdk.org
Fri Jul 26 06:26:40 UTC 2024
On Wed, 24 Jul 2024 05:12:17 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
> In GTKPainter.paintPopupMenuBackground method, `img != null` condition will always be true, because it's only checked after `img.getRGB` method is called and that means img can't be `null`. So, the null check condition is removed. CI testing is ok.
This pull request has now been integrated.
Changeset: 29f0f174
Author: Abhishek Kumar <abhiscxk at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/29f0f174a0460a98c5500c4cf4bf9abdf9354572
Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
8336879: Always true condition 'img != null' in GTKPainter.paintPopupMenuBackground
Reviewed-by: psadhukhan, tr
-------------
PR: https://git.openjdk.org/jdk/pull/20308
More information about the client-libs-dev
mailing list