Can someone imagine when this code:
public static void main(final String[] args) {
// do something
}
should become this:
public static void main(final String[] args) {
String[] argsCopy = doCopy(args);
// do something
}
(In our company we have a Sonar rule that forces such coping or arguments for all methods.) I can imagine why it can be important for standard methods, but I cannot find any benefit of having it done at a start of tools main method. Am I missing something?