[MDSAL-821] Annotate generated serialVersionUID with @java.io.Serial Created: 04/Apr/23 Updated: 11/Apr/23 Resolved: 11/Apr/23 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | None |
| Fix Version/s: | 12.0.0, 10.0.7, 11.0.8 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Java 15+ supports marking the intent of components – methods, fields, etc. – to conform to Serializable semantics with java.io.Serial. Improve code generator to mark serialVersionUID with this annotation, as in: @Generated("mdsal-binding-generator") public class EncapsulatedRoute implements ScalarTypeObject<InstanceIdentifier<?>>, Serializable { @java.io.Serial private static final long serialVersionUID = 7600677138139833747L; |