Prettier-Java 2.9.6
Input:
import org.jspecify.annotations.Nullable;
public class Foo {
public <T extends String> @Nullable T bar(T baz) {
return null;
}
}
Output:
public class Foo {
public <T extends String> T bar(T baz) {
return null;
}
}
Expected behavior:
Annotation should be retained
Prettier-Java 2.9.6
Input:
Output:
Expected behavior:
Annotation should be retained