Y
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
yen223
684 days ago
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)
link
metadat
688 days ago
It's still insane behavior. This implementation is effectively a sharp edge in the dark. Have fun.. :-/
link
(I do not miss working in Java haha)