RFR: 8288882: JFileChooser - empty (0 bytes) file is displayed as 1 KB [v17]
Alexey Ivanov
aivanov at openjdk.org
Thu Aug 11 19:39:03 UTC 2022
On Thu, 11 Aug 2022 19:30:18 GMT, Phil Race <prr at openjdk.org> wrote:
>> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Smaller file sizes display one decimal precision
>
> src/java.desktop/share/classes/sun/swing/FilePane.java line 1209:
>
>> 1207: }
>> 1208: text = mf.format(objs);
>> 1209: } else if (len < 100L) {
>
> we can never reach here, can we ? And isn't it obsolete ?
It's reachable when `listViewWindowsStyle` is `false`, which seems to be the case in all the Look-and-Feels but Windows one.
Yet it looks confusing.
-------------
PR: https://git.openjdk.org/jdk/pull/9327
More information about the client-libs-dev
mailing list