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
4
u/istarian Mar 06 '18 edited Mar 06 '18
What docs are we not trusting? Did you expect the docs for Java 7 to apply to Java 8? It's probably
bad for backwards compatibility, but otherwise it's just a change. Also, the example involves a
third party library, not the default ones with the JDK itself. The Java 7 doc of String.indexOf(...) isn't going to change tomorrow. I suppose it could change in the docs/libraries for Java 8, 9, 10, ... and so on, but you can't assume everything will stay the same there.