2020-05-18

Java @SafeVarargs Example

@SafeVarargs 

@SafeVarargs annotation, when applied to a method or constructor, asserts that the code does not perform potentially unsafe operations on its varargs parameter. When this annotation type is used, unchecked warnings relating to varargs usage are suppressed.

No comments:

Post a Comment