提交 1eba9380 编写于 作者: B Baptiste Mathus

Clarify PermissionGroup.owner is @Nonnull

Permission.owner is already marked @Nonnull, and
is built using PermissionGroup.owner.
上级 a953bc86
......@@ -30,6 +30,8 @@ import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import org.jvnet.localizer.Localizable;
/**
......@@ -53,7 +55,7 @@ public final class PermissionGroup implements Iterable<Permission>, Comparable<P
* @param title sets {@link #title}
* @throws IllegalStateException if this group was already registered
*/
public PermissionGroup(Class owner, Localizable title) throws IllegalStateException {
public PermissionGroup(@Nonnull Class owner, Localizable title) throws IllegalStateException {
this.owner = owner;
this.title = title;
register(this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册