Skip to content

Commit 6f356fd

Browse files
authored
#3674 Add @nullable to Query getId(), getForUpdateLockWait(), getForUpdateLockType() (#3675)
These methods return nullable results, add JSpecify `@Nullable` to correctly indicate this.
1 parent 591f260 commit 6f356fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ebean-api/src/main/java/io/ebean/Query.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.ebean;
22

33
import org.jspecify.annotations.NullMarked;
4+
import org.jspecify.annotations.Nullable;
45

56
/**
67
* Object relational query for finding a List, Set, Map or single entity bean.
@@ -310,6 +311,7 @@ enum LockWait {
310311
/**
311312
* Return the Id value.
312313
*/
314+
@Nullable
313315
Object getId();
314316

315317
/**
@@ -446,11 +448,13 @@ enum LockWait {
446448
/**
447449
* Return the "for update" wait mode to use.
448450
*/
451+
@Nullable
449452
LockWait getForUpdateLockWait();
450453

451454
/**
452455
* Return the lock type (strength) to use with "for update".
453456
*/
457+
@Nullable
454458
LockType getForUpdateLockType();
455459

456460
/**

0 commit comments

Comments
 (0)