8015963: Add at since tags to new ConcurrentHashMap methods

Martin Buchholz martinrb at google.com
Wed Jun 5 16:01:47 UTC 2013


On Wed, Jun 5, 2013 at 7:35 AM, Chris Hegarty <chris.hegarty at oracle.com>wrote:

>
> On 05/06/2013 14:49, Martin Buchholz wrote:
>
>> jsr166 CVS updated with this patch, except that the jsr166 style is not
>> to introduce a blank line just for @since.
>>
>
> Thanks Martin,
>
> Trivially, I think you are still missing a few:
>
>   reduceEntriesToLong, reduceEntriesToInt, and class KeySetView.
>
>
Done.

--- ConcurrentHashMap.java 5 Jun 2013 13:48:59 -0000 1.220
+++ ConcurrentHashMap.java 5 Jun 2013 15:59:29 -0000
@@ -3962,6 +3962,7 @@
      * @param reducer a commutative associative combining function
      * @return the result of accumulating the given transformation
      * of all entries
+     * @since 1.8
      */
     public long reduceEntriesToLong(long parallelismThreshold,
                                     ToLongFunction<Map.Entry<K,V>>
transformer,
@@ -3987,6 +3988,7 @@
      * @param reducer a commutative associative combining function
      * @return the result of accumulating the given transformation
      * of all entries
+     * @since 1.8
      */
     public int reduceEntriesToInt(long parallelismThreshold,
                                   ToIntFunction<Map.Entry<K,V>>
transformer,
@@ -4162,6 +4164,8 @@
      * {@link #keySet(Object) keySet(V)},
      * {@link #newKeySet() newKeySet()},
      * {@link #newKeySet(int) newKeySet(int)}.
+     *
+     * @since 1.8
      */
     public static class KeySetView<K,V> extends CollectionView<K,V,K>
         implements Set<K>, java.io.Serializable {



More information about the core-libs-dev mailing list