On Fri, 7 Oct 2022 21:42:40 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> Harshitha Onkar has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   fix for pixel color at edge, outermost border lines drawn as part of bulk 
>> of border
>
> src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java line 
> 266:
> 
>> 264:             }
>> 265: 
>> 266:             Graphics2D g2d = (Graphics2D) g;
> 
> It could be a DebugGraphics which is not a Graphics2D

If the code will be refactored please double-check that the blind cast will not 
be used, "g" could DebugGraphics which is not a Graphics2D

-------------

PR: https://git.openjdk.org/jdk/pull/10274

Reply via email to