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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.0
    • None
    • restconf-openapi

      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.

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

              Created:
              Updated:
              Resolved: