markap14 commented on code in PR #7972:
URL: https://github.com/apache/nifi/pull/7972#discussion_r1381938776


##########
nifi-nar-bundles/nifi-py4j-bundle/nifi-py4j-bridge/src/main/java/org/apache/nifi/py4j/StandardPythonBridge.java:
##########
@@ -288,23 +287,18 @@ public String toString() {
         return "StandardPythonBridge";
     }
 
+    private ExtensionId getExtensionId(final String type, final String 
version) {
+        final List<PythonProcessorDetails> processorTypes = 
controllerProcess.getController().getProcessorTypes();
+        final Optional<PythonProcessorDetails> processorTypeFound = 
processorTypes.stream()
+                .filter(details -> details.getProcessorType().equals(type))
+                .filter(details -> 
details.getProcessorVersion().equals(version))
+                .findFirst();
 
-    private static class ExtensionId {

Review Comment:
   Good call changing this to a Record! But I think if it's a record, we don't 
need the equals or hashCode methods anymore - those are automatically provided.



-- 
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