From 5b6fa926084b5678e91909d9783152cbbd4c6ccc Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Tue, 20 Sep 2022 11:21:44 +0200 Subject: [PATCH] [jOOQ/jOOQ#10780] Add a few more nullability annotations to DAO --- jOOQ/src/main/java/org/jooq/DAO.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/DAO.java b/jOOQ/src/main/java/org/jooq/DAO.java index db87b37bd4..bf08c9a5f6 100644 --- a/jOOQ/src/main/java/org/jooq/DAO.java +++ b/jOOQ/src/main/java/org/jooq/DAO.java @@ -313,7 +313,7 @@ public interface DAO, P, T> { */ @NotNull @Support - List

findAll() throws DataAccessException; + List<@NotNull P> findAll() throws DataAccessException; /** * Find a record of the underlying table by ID. @@ -336,7 +336,7 @@ public interface DAO, P, T> { */ @NotNull @Support - Optional

findOptionalById(T id) throws DataAccessException; + Optional<@NotNull P> findOptionalById(T id) throws DataAccessException; /** * Find records by a given field and a set of values. @@ -409,7 +409,7 @@ public interface DAO, P, T> { */ @NotNull @Support - Optional

fetchOptional(Field field, Z value) throws DataAccessException; + Optional<@NotNull P> fetchOptional(Field field, Z value) throws DataAccessException; /** * Get the underlying table.