tpalfy commented on code in PR #10079:
URL: https://github.com/apache/nifi/pull/10079#discussion_r2210463067
##########
nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/flowanalysis/StandardFlowAnalyzer.java:
##########
@@ -190,6 +190,7 @@ private void analyzeProcessGroup(
Collection<RuleViolation> groupViolations,
Map<VersionedComponent, Collection<RuleViolation>>
componentToRuleViolations
) {
+ if (flowAnalysisRules.isEmpty()) return;
Review Comment:
```suggestion
if (flowAnalysisRules.isEmpty()) {
return;
}
```
##########
nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java:
##########
@@ -6846,18 +6846,33 @@ public FlowAnalysisResultEntity
getFlowAnalysisResult(String processGroupId) {
}
public Stream<RuleViolation> getRuleViolationStream(String processGroupId)
{
+ if (ruleViolationsManager.isEmpty())
+ return Stream.empty();
Review Comment:
```suggestion
if (ruleViolationsManager.isEmpty()) {
return Stream.empty();
}
```
--
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]