RFR: 8297814: (fs) Re-visit Path.getExtension return value [v2]
Brian Burkhalter
bpb at openjdk.org
Tue Dec 6 22:15:25 UTC 2022
On Tue, 6 Dec 2022 20:01:45 GMT, Stuart Marks <smarks at openjdk.org> wrote:
>> Yes, I was aware of that but decided to leave it in and get comments.
>
> Since this is part of the specification, the simpler it is, the better.
Simplified in af0980652e88297166251d44dd7d0ae79b8e6633.
>> That was my thought.
>
> I'm not sure this is a useful optimization. It does a bit more computation in order to save a string allocation. It probably doesn't occur very frequently though so I don't think this saves much.
Removed in af0980652e88297166251d44dd7d0ae79b8e6633.
-------------
PR: https://git.openjdk.org/jdk/pull/11545
More information about the nio-dev
mailing list