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

OpenApi: Eliminate DefinitionGenerator#putIfNonNull(ObjectNode, String, Number)

    XMLWordPrintable

Details

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

    Description

      We can eliminate DefinitionGenerator#putIfNonNull(ObjectNode, String, Number) method because:

      1. range type is always Integer
      2. com.google.common.collect.Range is designed to reject null values
      3. key is never null - we have passed it into the method

      Please note that this method is not the same as in NETCONF-1080.

      Attachments

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

        Activity

          People

            cicut Ľuboš Čičut
            ivanhrasko Ivan Hrasko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: