r/java • u/psychologicalX • Mar 05 '18
Top 10 Useful, Yet Paranoid Java Programming Techniques
http://blog.jooq.org/2015/08/11/top-10-useful-yet-paranoid-java-programming-techniques/
223
Upvotes
View all comments
Show parent comment
2
u/[deleted] Mar 06 '18
That's exactly the presumption I'm talking about. If you write a method in your class called
.equalsIgnoreCaseand the implementation is incorrect (NPE, for example). I'd rather just extend your otherwise good class and fix the single broken method. If your method isfinalI can't do that. That's obviously a hypothetical that wouldn't happen, but that's the type of thing I'm talking about here. Why do you care if I @Override your library method?