public class Privileged {
public Privileged(){
super();
checkPermissions();
}
}
Is insufficient due to tricks with race conditions.
public class Privileged {
public Privileged(){
this(checkPermission());
}
private Privileged(Void dummy) {}
}
Is the proper procedure
© 版权声明
THE END
暂无评论内容