We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.虚引用必须配合引用队列使用 2.在对虚引用的描述未说明,且案例也是错误示范. 从JDK的PhantomReference源码可知,该类只有一个构造器,如下 PhantomReference(T referent, ReferenceQueue<? super T> q);
The text was updated successfully, but these errors were encountered:
Plus, calling get() on a PhantomReference always returns null.
Sorry, something went wrong.
No branches or pull requests
1.虚引用必须配合引用队列使用
2.在对虚引用的描述未说明,且案例也是错误示范.
从JDK的PhantomReference源码可知,该类只有一个构造器,如下
PhantomReference(T referent, ReferenceQueue<? super T> q);
The text was updated successfully, but these errors were encountered: