Skip to content
New issue

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

没有意义的代码 #463

Open
Huan-Rong opened this issue Mar 30, 2020 · 1 comment
Open

没有意义的代码 #463

Huan-Rong opened this issue Mar 30, 2020 · 1 comment

Comments

@Huan-Rong
Copy link

SNode tmp = ptr.getNext();


我看不出来这两行代码有任何的意义。应该是可以直接删除的代码。

@kensinxie
Copy link

java当中没有显式的删除对象的语句(比如c中的delete ),所以在java中,想销毁某个对象的时候只要把对象的指针指向null,jvm会自动将他销毁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants