Hacker News new | ask | show | jobs
by hn_throwaway_99 688 days ago
Well, remember, this is Java, so `if (urlA == urlB)` just does standard object equality, the IP lookup is only done for `if (urlA.equals(urlB))` :)
2 comments

This is Java, so you should always do `Object.equals(urlA, urlB)`, on the off-chance urlA is null!

(I do not miss working in Java haha)

It's still insane behavior. This implementation is effectively a sharp edge in the dark. Have fun.. :-/