mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-02-11 10:01:26 +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
|
* @return the expiry time
|
||||||
*/
|
*/
|
||||||
OptionalLong getExpiry();
|
@NonNull OptionalLong getExpiry();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the extra context for the permission.
|
* Gets the extra context for the permission.
|
||||||
*
|
*
|
||||||
* @return the extra context
|
* @return the extra context
|
||||||
*/
|
*/
|
||||||
ContextSet getContexts();
|
@NonNull ContextSet getContexts();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts this permission into a Node
|
* Converts this permission into a Node
|
||||||
|
@ -71,11 +71,13 @@ public final class NodeHeldPermission<T extends Comparable<T>> implements HeldPe
|
|||||||
return this.node.getWorld();
|
return this.node.getWorld();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public OptionalLong getExpiry() {
|
public OptionalLong getExpiry() {
|
||||||
return this.node.isTemporary() ? OptionalLong.of(this.node.getExpiryUnixTime()) : OptionalLong.empty();
|
return this.node.isTemporary() ? OptionalLong.of(this.node.getExpiryUnixTime()) : OptionalLong.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public ContextSet getContexts() {
|
public ContextSet getContexts() {
|
||||||
return this.node.getContexts();
|
return this.node.getContexts();
|
||||||
|
Loading…
Reference in New Issue
Block a user