Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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))` :)


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.. :-/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: