RFR: 8057113: (fs) Path should have a method to obtain the filename extension [v14]
Brian Burkhalter
bpb at openjdk.org
Wed Jul 27 15:32:30 UTC 2022
On Tue, 26 Jul 2022 00:09:09 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Resurrection of the proposal to add a method to obtain the filename extension originated in PR [2319](https://github.com/openjdk/jdk/pull/2319).
>
> Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 18 additional commits since the last revision:
>
> - 8057113: Revert return type back to a nullable-String; update test
> - Merge
> - 8057113: Remove extensions() test method; add threthree new test cases
> - 8057113: Revert excision of wild cards from imports
> - 8057113: Add class level apiNote; improve getExtension() specification; remove hasExtension() and replaceExtension()
> - Merge
> - 8057113: Change @since annotation to 20
> - Merge
> - 8057113: Remove superfluous new Object[] statements from test
> - 8057113: Fix getExtension() commcents; improve hasExtension() implementation
> - ... and 8 more: https://git.openjdk.org/jdk/compare/e7956ca7...23ca3f10
3f510ecc32089589203b1fffb13eedc579aaa8bb fixes the `..` case which was previously yielding `null` when it should be `""`.
-------------
PR: https://git.openjdk.org/jdk/pull/8066
More information about the nio-dev
mailing list