Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hn_throwaway_99
on Aug 3, 2024
|
parent
|
context
|
favorite
| on:
Common I/O Tasks in Modern Java
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))` :)
yen223
on Aug 6, 2024
|
next
[–]
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)
metadat
on Aug 3, 2024
|
prev
[–]
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: