Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 14001 invoked from network); 19 Oct 2005 14:22:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2005 14:22:15 -0000 Received: (qmail 71950 invoked by uid 500); 19 Oct 2005 14:22:13 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 71904 invoked by uid 500); 19 Oct 2005 14:22:13 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 71893 invoked by uid 99); 19 Oct 2005 14:22:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2005 07:22:13 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 19 Oct 2005 07:22:13 -0700 Received: (qmail 13677 invoked by uid 65534); 19 Oct 2005 14:21:51 -0000 Message-ID: <20051019142151.13676.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r326570 - /directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java Date: Wed, 19 Oct 2005 14:21:51 -0000 To: commits@directory.apache.org From: ersiner@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: ersiner Date: Wed Oct 19 07:21:43 2005 New Revision: 326570 URL: http://svn.apache.org/viewcvs?rev=326570&view=rev Log: Added missing license text and some javadoc. Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java?rev=326570&r1=326569&r2=326570&view=diff ============================================================================== --- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java (original) +++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java Wed Oct 19 07:21:43 2005 @@ -1,9 +1,34 @@ +/* + * Copyright 2005 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + package org.apache.ldap.common.util; import java.util.HashMap; +/** + * A Map implementation derived from HashMap that only overrides a single method + * put() in order to prevent duplicate keyed entries to be added. + * + * @author Apache Directory Project + * @version $Rev$ + */ public class NoDuplicateKeysMap extends HashMap { /**