Mercurial > hg4j
diff src/org/tmatesoft/hg/core/Nodeid.java @ 304:85b8efde5586
Use memory-friendly set implementation to canonicalize filenames and nodeids
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 21 Sep 2011 18:26:16 +0200 |
parents | 88c58edc0857 |
children | 465316bf97e8 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/Nodeid.java Tue Sep 20 04:43:39 2011 +0200 +++ b/src/org/tmatesoft/hg/core/Nodeid.java Wed Sep 21 18:26:16 2011 +0200 @@ -76,8 +76,11 @@ @Override public boolean equals(Object o) { + if (o == this) { + return true; + } if (o instanceof Nodeid) { - return this == o || equalsTo(((Nodeid) o).binaryData); + return equalsTo(((Nodeid) o).binaryData); } return false; }