Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-998

OpenAPI: Do not use Optional type as method parameter

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 7.0.0
    • restconf-openapi

    Description

      In sal-rest-docgen package there is a lot of usages of Optional<> type as method parameter. That’s discouraged: https://stackoverflow.com/questions/31922866/why-should-java-8s-optional-not-be-used-in-arguments.

      We can get rid of this problem by slightly reworking our code.

      Complete work on https://git.opendaylight.org/gerrit/c/netconf/+/105646 and create additional patches which deals with other occurrences of this problem in sal-rest-docgen package.

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            simon0pt Šimon Ukuš
            ivanhrasko Ivan Hrasko
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: