The formatting applied is different depending on whether a type annotation is applied to an array type or a varargs type. See the following examples:
- With an Array type there is a space between the type annotation (
@Nullable) and the type ([])
private static boolean isEmptyVarargs(@Nullable Object @Nullable [] args) {
- With Varargs there is no space between the type annotation (
@Nullable) and the type (...)
public KeyValues and(String @Nullable... keyValues) {