Closed
Description
This is a follow-up issue on the nullability support. I am using 0.0.45
.
Consider the following (silly) example:
private @Nullable Object[] doSomething(int length) {
@Nullable Object[] args = new Object[length];
for (int i = 0; i < length; i++) {
args[i] = (i % 2 == 0) ? Boolean.TRUE : null;
}
return args;
}
If I ask to reformat, this does:
private @Nullable Object[] doSomething(int length) {
@Nullable
Object[] args = new Object[length];
for (int i = 0; i < length; i++) {
args[i] = (i % 2 == 0) ? Boolean.TRUE : null;
}
return args;
}