On Tue, 2011-02-22 at 16:58 +0200, Pekka Enberg wrote:
> While debugging Jython bootstrap issues with GNU Classpath, I noticed that
> HashMap.DEFAULT_CAPACITY is set to 11 although 1.4 Javadocs, for example,
> 
> define it to be 16.  Signed-off-by: Pekka Enberg <penb...@kernel.org>
>    /**
> -   * Default number of buckets. This is the value the JDK 1.3 uses. Some
> -   * early documentation specified this value as 101. That is incorrect.
> +   * Default number of buckets; this is explicitly specified by the spec.
>     * Package visible for use by HashSet.
>     */
> -  static final int DEFAULT_CAPACITY = 11;
> +  static final int DEFAULT_CAPACITY = 16;

Just say "this is currently set to 16."
Since obviously "the spec" changed a bit over time.

The actual change seems OK.

Thanks,

Mark


Reply via email to