Tarin Gamberini created NETBEANS-1670:
-----------------------------------------

             Summary: Add defaultSerialVersionUID to all Serializable classes 
missing it
                 Key: NETBEANS-1670
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1670
             Project: NetBeans
          Issue Type: Improvement
          Components: java - Refactoring
    Affects Versions: 9.0
            Reporter: Tarin Gamberini


Currently if I have checked the Serialization checkbox under Tools > Options > 
Editor > Hints > Standard Javac Warnings I can find all classes missing a 
defaultSerialVersionUID.

Of course if there are many classes I have to open each class and adding 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:
 # left click on the project in Projects window
 # click Refactor
 # click Inspect and Transform
 # choose Single Inspection
 # choose Serialization under a Standard Javac Warnings section
 # click Inspect
 # click Transform

Many thanks for your help,

Tarin



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to