jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: svn commit: r1532157 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/NodeTypeImpl.java oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/nodetype/NodeTypeEqualsTest.java
Date Tue, 15 Oct 2013 18:34:41 GMT
Hi,

On Tue, Oct 15, 2013 at 2:04 PM, Tobias Bocanegra <tripod@apache.org> wrote:
> Initially I thought that comparing just the names would be
> enough, but then it wouldn't work correctly when a 2 nodetypes of different
> sessions are compared that were modified.

The Object.equals() contract doesn't require that the compared objects
are *exactly equal*. Any equivalence relationship, including name
comparison, should be fine.

BR,

Jukka Zitting

Mime
View raw message