News for hackers. Stuff that matters.
Re:Common I/O Tasks in Modern Java by hn_throwaway_99 on Friday August 02, 2024 @08:25PM (#41143808)
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))` :)
Re:Common I/O Tasks in Modern Java by metadat on Friday August 02, 2024 @11:08PM (#41144407)
It's still insane behavior. This implementation is effectively a sharp edge in the dark. Have fun.. :-/
Re:Common I/O Tasks in Modern Java by yen223 on Tuesday August 06, 2024 @07:50PM (#41176768)
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)