Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-187

Generated *Key classes define serialVersionUID but do not implement Serializable

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    • 1195

    Description

      There's no reason to include a serialVersionUID in a class that doesn't implement Serializable. Note that the fields of the keys are generally not serializable, so this isn't a matter of adding implemented Serializable. Recommendation is remove serialVersionUID.

      e.g.:

      public class CapabilityKey
      implements Identifier<Capability>

      { private static final long serialVersionUID = 3133965736403838075L; final private CapabilityName _name; ... }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mvitez@cisco.com Martin Vitez
            readams Rob Adams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: