You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "taringamberini (via GitHub)" <gi...@apache.org> on 2023/05/04 09:18:01 UTC

[GitHub] [netbeans] taringamberini opened a new issue, #5915: Add defaultSerialVersionUID to all Serializable classes that haven't yet it

taringamberini opened a new issue, #5915:
URL: https://github.com/apache/netbeans/issues/5915

   ### Description
   
   Currently, if I have checked the Serialization checkbox under Tools > Options > Editor > Hints > Standard Javac Warnings I can find all classes missing a defaultSerialVersionUID looking in the Action Items window.
   
   Unfortunately, if there are many classes I have to open each class to add a defaultSerialVersionUID. Luckily the editor helps me because when I put the cursor on the class declaration I type ALT+ENTER and I choose Add defaultSerialVersionUID. The problem is that I have to repeat these operations for each class.
   
   I would like adding a defaultSerialVersionUID to all Serializable classes which don't has one yet.
   
   That is a refactoring scenario, so I would like to proceed in this way:
   
   1. left click on the project in Projects window
   2. click Refactor
   3. click Inspect and Transform
   4. choose Single Inspection
   5. choose Serialization under a Standard Javac Warnings section
   6. click Inspect
   7. click Transform
   
   Many thanks for your help,
   Tarin
   
   
   ### Use case/motivation
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists