-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 14+ : add @Serial
annotation to serialVersionUID
fields
#96
Comments
+1 for this. Dont know how easy this would be though. |
@timtebeek i am interested in doing this one but need a hint on how to get started. The general idea is
|
hi @melloware, welcome back! It seems this open issue was missed when the recipe was implemented in You can already use that existing recipe; I've just pushed up a change to the latest snapshot to correct the casing: Thanks for reaching out on this issue! Good to see this can be closed. |
OK wasn't sure where to ask but I wasn't seeing this run as part of a Java 17 migration i just did so I assumed this would have been part of an automatic upgrade recipe? |
I had doubted at the time to make this part of the upgrade recipe; the way I see it there might be some push back from folks that prefer a "minimal" migration, as opposed to having to review additional lines any place there's a |
Yeah I guess my only argument is in INtelliJ when I open a Java 17 or 21 project that warning comes up on every class to add In theory I can run the 17 Recipe and then run this custom recipe. But there is a reason Java added this and to me it make sense to migrate it by default. Just my two cents. |
Ah I didn't know about the warnings in IntelliJ IDEA; that'd be a stronger reason to include this recipe by default. Would you want to push that up? |
Yes let me submit a PR. |
Relevant :
https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-September/081364.html
https://stackoverflow.com/questions/63783474/what-is-the-use-of-serial-annotation-as-of-java-14
The text was updated successfully, but these errors were encountered: