RFR: 8057113: (fs) Path should have a method to obtain the filename extension [v11]

Brian Burkhalter bpb at openjdk.org
Tue Jul 5 16:06:31 UTC 2022


On Fri, 1 Jul 2022 15:35:25 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> 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 14 additional commits since the last revision:
>> 
>>  - 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
>>  - 8057113: trailing dot yields empty string extension; add test
>>  - Merge
>>  - 8057113: String getExtension(String defaultExtension) to Optional<String> getExtension() and other changes
>>  - 8057113: Clean up trailing whitespace
>>  - ... and 4 more: https://git.openjdk.org/jdk/compare/3308a95b...d11ef42a
>
> src/java.base/unix/classes/sun/nio/fs/UnixPath.java line 39:
> 
>> 37: import java.net.URI;
>> 38: import java.util.Objects;
>> 39: 
> 
> These can be reverted; no changes needed in UnixPath.

Reverted in ec0a341ef8186482c73c1909ffeaf061c26afc36.

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

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


More information about the nio-dev mailing list