Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgRemoteRepository.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 | 41a778e3fd31 |
children | 981f9f50bb6c |
comparison
equal
deleted
inserted
replaced
273:8f872bd7ddd2 | 274:9fb50c04f03c |
---|---|
440 } | 440 } |
441 if (false == obj instanceof RemoteBranch) { | 441 if (false == obj instanceof RemoteBranch) { |
442 return false; | 442 return false; |
443 } | 443 } |
444 RemoteBranch o = (RemoteBranch) obj; | 444 RemoteBranch o = (RemoteBranch) obj; |
445 // in fact, p1 and p2 are not supposed to be null, ever (at least for RemoteBranch created from server output) | |
445 return head.equals(o.head) && root.equals(o.root) && (p1 == null && o.p1 == null || p1.equals(o.p1)) && (p2 == null && o.p2 == null || p2.equals(o.p2)); | 446 return head.equals(o.head) && root.equals(o.root) && (p1 == null && o.p1 == null || p1.equals(o.p1)) && (p2 == null && o.p2 == null || p2.equals(o.p2)); |
446 } | 447 } |
447 } | 448 } |
448 } | 449 } |