bbende commented on code in PR #6031:
URL: https://github.com/apache/nifi/pull/6031#discussion_r869476551


##########
nifi-manifest/nifi-runtime-manifest-core/src/main/java/org/apache/nifi/runtime/manifest/impl/StandardRuntimeManifestBuilder.java:
##########
@@ -348,6 +351,24 @@ private void populateExtensionComponent(final 
ExtensionManifest extensionManifes
             providedServiceApis.forEach(providedServiceApi -> 
providedApiTypes.add(createProvidedApiType(providedServiceApi)));
             extensionComponent.setProvidedApiImplementations(providedApiTypes);
         }
+
+        final Restricted restricted = extension.getRestricted();
+        if (restricted != null) {
+            extensionComponent.setRestricted(true);
+            
extensionComponent.setRestrictedExplanation(restricted.getGeneralRestrictionExplanation());
+            if (restricted.getRestrictions() != null) {

Review Comment:
   If everything else in the class was already in this style, then I'd 
definitely be consistent and do something like that. For now I'd leave it as is.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to