Java SafeVarargs annotation, does a standard or best practice exist?
1) There are many examples on the Internet and on StackOverflow about the particular issue with generics and varargs. Basically, it’s when you have a variable number of arguments of a type-parameter type: <T> void foo(T… args); In Java, varargs are a syntactic sugar that undergoes a simple “re-writing” at compile-time: a varargs parameter of … Read more