mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Fixes IDEA-362982 JSpecify: Local variable incorrectly asserted as NotNull with generics GitOrigin-RevId: c310d57d875b4f63370daf0b77caece902681a06
15 lines
382 B
Java
15 lines
382 B
Java
import org.jspecify.annotations.NullMarked;
|
|
import org.jspecify.annotations.Nullable;
|
|
|
|
import java.io.Serializable;
|
|
|
|
@NullMarked
|
|
class LocalsWithGenericsNullness {
|
|
public <R extends Serializable> @Nullable R fetchOne() {
|
|
throw new UnsupportedOperationException("Not relevant");
|
|
}
|
|
|
|
public <R extends Serializable> void fetchOneDelegate() {
|
|
R record = fetchOne();
|
|
}
|
|
} |