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

后端 未结 1 1822
别那么骄傲
别那么骄傲 2020-12-02 02:43

I have this code:

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.Date;

public class Employ         


        
相关标签:
1条回答
  • 2020-12-02 03:24

    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.

    0 讨论(0)
提交回复
热议问题