Return-Path: Delivered-To: apmail-incubator-jackrabbit-commits-archive@www.apache.org Received: (qmail 14029 invoked from network); 5 Oct 2005 16:36:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2005 16:36:03 -0000 Received: (qmail 18197 invoked by uid 500); 5 Oct 2005 16:37:24 -0000 Mailing-List: contact jackrabbit-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-commits@incubator.apache.org Received: (qmail 18186 invoked by uid 500); 5 Oct 2005 16:37:24 -0000 Delivered-To: apmail-incubator-jackrabbit-cvs@incubator.apache.org Received: (qmail 18183 invoked by uid 99); 5 Oct 2005 16:37:24 -0000 X-ASF-Spam-Status: No, hits=-9.8 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, 05 Oct 2005 09:37:24 -0700 Received: (qmail 13351 invoked by uid 65534); 5 Oct 2005 16:35:42 -0000 Message-ID: <20051005163542.13348.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r295031 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java Date: Wed, 05 Oct 2005 16:35:41 -0000 To: jackrabbit-cvs@incubator.apache.org From: tripod@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: tripod Date: Wed Oct 5 09:35:36 2005 New Revision: 295031 URL: http://svn.apache.org/viewcvs?rev=295031&view=rev Log: adding equals() and hashCode() Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java?rev=295031&r1=295030&r2=295031&view=diff ============================================================================== --- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java (original) +++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/ItemDefinitionImpl.java Wed Oct 5 09:35:36 2005 @@ -142,5 +142,25 @@ public boolean isProtected() { return itemDef.isProtected(); } + + /** + * {@inheritDoc} + */ + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ItemDefinitionImpl)) { + return false; + } + return itemDef.equals(((ItemDefinitionImpl) o).itemDef); + } + + /** + * {@inheritDoc} + */ + public int hashCode() { + return itemDef.hashCode(); + } }