RFR: 8288882: JFileChooser - empty (0 bytes) file is displayed as 1 KB [v24]

Abhishek Kumar duke at openjdk.org
Fri Aug 26 14:30:12 UTC 2022


On Fri, 26 Aug 2022 13:54:44 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Comments modified and formatToDoubleValue method name renamed
>
> src/java.desktop/share/classes/sun/swing/FilePane.java line 1266:
> 
>> 1264:         /**
>> 1265:          * Rounds a value to one decimal place. It's used to format
>> 1266:          * file size similar to how it's formatted in file managers on Linux.
> 
> Does it make sense to add an example?
> 
>          * For example, the file size of 1200 bytes is rounded to 1.2 KB.

I have added the comment.

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

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



More information about the client-libs-dev mailing list