Though many questions on Meta Stack Overflow seem to come very close, I can't seem to find my question:
Should I (or can I) edit another person's answer to another person's question that has been accepted and upvoted by a majority of voters, when I consider it to be an incomplete answer?
On this question: Create ArrayList from array, I feel the accepted answer is only a partial answer. The question asks specifically how to CONVERT an array, and while most people are not intensely concerned with performance, the answer is ultimately a COPY action (which creates a more flexible object, but takes a teeny bit more processing). Comments left before my comment in addition to other answers address this difference, but were not accepted.
My concern is that the accepted answer is simple enough (and accepted and fairly highly rated enough) that many viewers are likely to never look at any comments or other answers. I am tempted to change the accepted answer to something like the following:
-- BEGIN SUGGESTED ANSWER --
To copy the data into a new ArrayList
newArrayList = new ArrayList<Element>(Arrays.asList(array));
However, to truly convert the array, simply use:
newArrayList = Array.asList(array);
This will create a fixed-size version of the array, which acts as a wrapper to the array, and does not actually copy any data. See Arrays.asList()
-- END SUGGESTED ANSWER --
Does my desire seems reasonable? Does it violate Stack Overflow rules somehow? Can I even edit an accepted answer?