Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / restconf / sal-rest-docgen / src / main / java / org / opendaylight / netconf / sal / rest / doc / model / builder / OperationBuilder.java
index bb14d5a593e75eaac73569cb9cf652f3547b5210..4a4eba98d1d2bc51d09b9cbeeb982b8076c31727 100644 (file)
@@ -29,6 +29,10 @@ public final class OperationBuilder {
         CONSUMES_PUT_POST.add("application/xml");
     }
 
+    private OperationBuilder() {
+
+    }
+
     public static class Get {
 
         protected Operation spec;
@@ -41,7 +45,7 @@ public final class OperationBuilder {
             spec.setMethod(METHOD_NAME);
             spec.setNickname(METHOD_NAME + "-" + node.getQName().getLocalName());
             spec.setType((isConfig ? CONFIG : OPERATIONAL) + node.getQName().getLocalName());
-            spec.setNotes(node.getDescription());
+            spec.setNotes(node.getDescription().orElse(null));
         }
 
         public Get pathParams(final List<Parameter> params) {