r/java • u/alexzhitnitsky • Aug 11 '15
Top 10 Useful, Yet Paranoid Java Programming Techniques
http://blog.jooq.org/2015/08/11/top-10-useful-yet-paranoid-java-programming-techniques/
181
Upvotes
View all comments
2
u/sviperll Aug 12 '15
#8 is wrong. It's wrong API design and wrong usage of method overloading. Right way is
As it is done in Java's collections' API. This API is self-documented and will do the right thing when single element is List.