UladzislauBlok commented on code in PR #22570:
URL: https://github.com/apache/kafka/pull/22570#discussion_r3532254656


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/ProcessorTopologyTest.java:
##########
@@ -1074,7 +1074,13 @@ private void assertNextOutputRecord(final 
TestRecord<String, String> record,
     }
 
     private StreamPartitioner<String, String> constantPartitioner(final 
Integer partition) {
-        return (topic, key, value, numPartitions) -> 
Optional.of(Collections.singleton(partition));
+        return new StreamPartitioner<>() {
+            @SuppressWarnings("removal")
+            @Override
+            public Optional<Set<Integer>> partitions(final String topic, final 
String key, final String value, final int numPartitions) {
+                return Optional.of(Collections.singleton(partition));
+            }
+        };
     }
 

Review Comment:
   Actually this is leftover. Will bring lambda back



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