提交 a946c126 编写于 作者: J Jesse Glick

Enforcing consistent synchronization of PermissionGroup.permissions.

上级 2e778e49
......@@ -122,7 +122,7 @@ public final class PermissionGroup implements Iterable<Permission>, Comparable<P
return id().hashCode();
}
public int size() {
public synchronized int size() {
return permissions.size();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册