dan-s1 commented on code in PR #10233:
URL: https://github.com/apache/nifi/pull/10233#discussion_r2304378164
##########
nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/audit/ProcessGroupAuditor.java:
##########
@@ -371,6 +419,30 @@ private void saveUpdateProcessGroupAction(final String
groupId, final Operation
saveAction(action, logger);
}
+ private void saveUpdateConnectableActions(final List<Connectable>
connectables, final Operation operation, final Component component) {
+ final List<Action> actions = new ArrayList<>();
+ for (final Connectable connectable : connectables) {
+ final Action action =
generateUpdateConnectableAction(connectable, operation, component);
+ actions.add(action);
+ }
Review Comment:
This can be simplified to
```suggestion
final List<Action> actions = connectables.stream()
.map(connectable -> generateUpdateConnectableAction(connectable,
operation, component))
.toList();
```
--
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]