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

Cleanup Codec/Serializer/Deserializer contracts

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 4.0.0
    • None
    • None

    Description

      Current definition of these interfaces is rather problematic:

      • it does not enforce nullness
      • there is no definition of what happens on illegal input
      • there is no provision for throwing checked exceptions

      Updated the definition of Codec, so that it takes an Exception type to be thrown from serialize/deserialize. Also add a specialization for unchecked expecptions and a concrete specialization for IllegalArgumentException – which is effectively what we are doing now.

      Attachments

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

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: