RFR: JDK-8015739: Background of JInternalFrame is located out of JInternalFrame [v4]
Harshitha Onkar
honkar at openjdk.org
Tue Oct 4 18:28:53 UTC 2022
On Mon, 3 Oct 2022 22:02:28 GMT, Alisen Chung <achung at openjdk.org> wrote:
>> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:
>>
>> removed redundant jtreg header
>
> src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java line 255:
>
>> 253: * @return a {@code int} which is the rounded value of provided number
>> 254: */
>> 255: private static int roundDown(double d)
>
> The name of this method is a bit misleading, the operation doesn't actually round down, but rounds the number normally except for the x.5 case right? Does this operation exist somewhere else?
Yes, that is correct. The method doc does clarify the purpose. But I see your point - probably `roundOff()` would sound less ambiguous and neutral?
-------------
PR: https://git.openjdk.org/jdk/pull/10274
More information about the client-libs-dev
mailing list