News for hackers. Stuff that matters.
Re:Java's URL.equals() Performs DNS Resolution by ShinTakuya on Wednesday December 11, 2019 @10:55PM (#21769146)
I agree and disagree. I mean, the thing is that outside of personal projects it's not uncommon to inherit a codebase from other people, sometimes quite a large codebase. Such a warning can be useful when eliminating boo-boos (acting as an lint I guess).
Re:Java's URL.equals() Performs DNS Resolution by tuwtuwtuwtuw on Thursday December 12, 2019 @12:58AM (#21769603)
Wouldn't you want warnings when an inherited code base does weird things with possible incorrect behaviors as side effect?
Re:Java's URL.equals() Performs DNS Resolution by ShinTakuya on Thursday December 12, 2019 @03:20PM (#21775984)
Well I would consider DNS resolution on comparisons/hashing to be an incorrect behaviour as a side effect.
Re:Java's URL.equals() Performs DNS Resolution by ivan_gammel on Thursday December 12, 2019 @03:34PM (#21776126)
In this case Sonar will do a better job. IDE warnings are good for fixing them immediately - when they accumulate it’s very easy to stop paying any attention.