'java.io.ObjectOutputStream' is deprecated - an error in Intellij IDEA

为君一笑 提交于 2019-11-26 23:18:31

IntelliJ IDEA has an intention action to annotate library classes as Deprecated using the External Annotations support. You've probably triggered this intention action by accident.

For the classes deprecated this way there supposed to be the reverse action: Deannotate, but it may not work (bug reported).

To fix it manually, find the annotations.xml file in a directory that is configured in the SDK Annotations tab and edit/remove it.

UPDATE: Deannoate action should work now, but only while inside the annotated class itself, not from its reference.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!