On Mon, 9 Nov 2026 16:23:50 GMT, Chen Liang <[email protected]> wrote:

>> Deprecate the `contains` method on `java.util.Hashtable`, 
>> `java.util.Properties`, and `java.util.concurrent.ConcurrentHashMap` for 
>> being confusing with `containsKey`.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Chen Liang 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 six additional commits since 
> the last revision:
> 
>  - Merge branch 'master' of github.com:openjdk/jdk into 
> cleanup/hashtable-contains
>  - Simplify specs
>  - Simplify specs
>  - Merge branch 'master' of github.com:openjdk/jdk into 
> cleanup/hashtable-contains
>  - Redundant suppression
>  - Deprecate the hashtable contains methods

Now the deprecated block appears:

     * This method is potentially confusing with {@link #containsKey(Object)
     * containsKey}. Use {@link #containsValue(Object) containsValue} instead.

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

PR Comment: https://git.openjdk.org/jdk/pull/33593#issuecomment-6745244286

Reply via email to