public String[] getParameters(); in an interface, you should think again. Arrays are not just old-fashioned, there are good reasons to avoid exposing them. In this article, I’ll try to summarize the main drawbacks of using arrays in Java APIs. [ Looking for more tips on writing clean code? See our Software Craftsmanship page. | Polish up your coding with the help of experts in Eclipse Training . ] Let me start with perhaps the most unexpected thing: Arrays lead to poor performance Update:
Read full article from 3 Good Reasons to Avoid Arrays in Java Interfaces « EclipseSource Blog
No comments:
Post a Comment