You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by bu...@apache.org on 2002/09/02 12:14:05 UTC

DO NOT REPLY [Bug 12226] New: - BucketMap: value of DEFAULT_BUCKETS

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12226>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12226

BucketMap: value of DEFAULT_BUCKETS

           Summary: BucketMap: value of DEFAULT_BUCKETS
           Product: Avalon
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Excalibur
        AssignedTo: avalon-dev@jakarta.apache.org
        ReportedBy: michael.enke@wincor-nixdorf.com


I found:
private static final int DEFAULT_BUCKETS = 256;

but from the context (comments), this value should always be odd:
    /**
     * Initializes the map with the default number of buckets (255).
     */
    public BucketMap()
    {
        this( DEFAULT_BUCKETS );
    }
 
    /**
     * Initializes the map with a specified number of buckets.  The number
     * of buckets is never below 17, and is always an odd number (BucketMap
     * ensures this). ...

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>