[NETCONF-1120] OpenApi: Eliminate DefinitionGenerator#putIfNonNull(ObjectNode, String, Number) Created: 04/Aug/23  Updated: 07/Aug/23  Resolved: 07/Aug/23

Status: Resolved
Project: netconf
Component/s: restconf-openapi
Affects Version/s: None
Fix Version/s: 7.0.0

Type: Task Priority: Medium
Reporter: Ivan Hrasko Assignee: Ľuboš Čičut
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.


Generated at Wed Feb 07 20:16:43 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.