简体   繁体   中英

how to implement all java class with Serializable in netbeans

I have a Nebeans project and I need all my classes to implement Serializable .

Are there any Netbeans shortcuts that can make this happen to all of them, at once?

You only have to implement serializable on all your super classes. Anything that inherits will automatically be good to go.

I don't think so that there is any such shortcut key in eclipse(Not Sure about the Netbeans). However, you can write a utility program which will add implements Serializable at the end of the class definition in every .java file in a folder and its subdirectories.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM