Mercurial > hg4j
diff src/org/tmatesoft/hg/core/HgFileInformer.java @ 274:9fb50c04f03c
Use Nodeid.isNull check instead of NULL.equals
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 25 Aug 2011 03:57:39 +0200 |
parents | 8c951645bea0 |
children | 6dbbc53fc46d |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgFileInformer.java Thu Aug 25 03:56:27 2011 +0200 +++ b/src/org/tmatesoft/hg/core/HgFileInformer.java Thu Aug 25 03:57:39 2011 +0200 @@ -58,7 +58,7 @@ * @return <code>this</code> for convenience */ public HgFileInformer changeset(Nodeid nid) { - if (nid == null || Nodeid.NULL.equals(nid)) { + if (nid == null || nid.isNull()) { throw new IllegalArgumentException(); } cset = nid;