mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-02-06 07:31:23 +01:00
Missing nullability annotations
This commit is contained in:
parent
1213e58240
commit
e222e4e98c
@ -80,14 +80,14 @@ public interface HeldPermission<T> {
|
||||
*
|
||||
* @return the expiry time
|
||||
*/
|
||||
OptionalLong getExpiry();
|
||||
@NonNull OptionalLong getExpiry();
|
||||
|
||||
/**
|
||||
* Gets the extra context for the permission.
|
||||
*
|
||||
* @return the extra context
|
||||
*/
|
||||
ContextSet getContexts();
|
||||
@NonNull ContextSet getContexts();
|
||||
|
||||
/**
|
||||
* Converts this permission into a Node
|
||||
|
@ -71,11 +71,13 @@ public final class NodeHeldPermission<T extends Comparable<T>> implements HeldPe
|
||||
return this.node.getWorld();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public OptionalLong getExpiry() {
|
||||
return this.node.isTemporary() ? OptionalLong.of(this.node.getExpiryUnixTime()) : OptionalLong.empty();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public ContextSet getContexts() {
|
||||
return this.node.getContexts();
|
||||
|
Loading…
Reference in New Issue
Block a user