Dear Developers, We are a team of researchers from the Hong Kong University of Science and Technology (HKUST). Currently, we are studying how crowdsourcing can help developers to build a higher quality software.
One of the subjects that we used is Apache Commons Math. From our experiment, we identified a few areas in a particular file "TestUtils.java" that can be converted to a List<Type>. Using List<Type> is more preferred as it is much more flexible and easier to maintain. The following 2 identified methods are able to convert to a List<Type>: 1) public static void assertChiSquareAccept(int[] values, double[] expected, long[] observed, double alpha) 2) public static void assertChiSquareAccept(double[] expected, long[] observed, double alpha) Both of the above methods have used String arrays, and can be converted to a List<String> instead. Our references from the Stack Overflow community pointed out that List<Type> is preferred over a Type array. The Stack Overflow references to this are at " http://stackoverflow.com/questions/8689246" and " http://stackoverflow.com/questions/716597". By converting the Type array to a List<Type>, this will make the code more flexible and easier to maintain. We hope that you can consider this and let us know about any thoughts. This will be a tremendous help to us in our continuing research to building a better software and to help the open-source community as a whole. Please do not hesitate to contact me @ fche...@cse.ust.hk if there are any queries. Thanks a lot and have a great week ahead! -- Warmest Regards, Fuxiang