Skip to content

Commit 6c50ada

Browse files
committed
Annotate #find with @CheckReturnValue and @Contract
1 parent d826135 commit 6c50ada

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/net/thenextlvl/binder/StaticBinder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,7 @@ static StaticBinder getInstance(ClassLoader loader) {
6868
* @throws SecurityException if the binder access is not allowed
6969
* @see #get(Class)
7070
*/
71+
@CheckReturnValue
72+
@Contract(mutates = "this")
7173
<T> T find(Class<T> clazz) throws IllegalStateException, SecurityException;
7274
}

0 commit comments

Comments
 (0)