vvcephei commented on a change in pull request #9148: URL: https://github.com/apache/kafka/pull/9148#discussion_r468873464
########## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorNode.java ########## @@ -54,7 +54,19 @@ private Sensor createSensor; public ProcessorNode(final String name) { - this(name, null, null); + this(name, (Processor<KIn, VIn, KOut, VOut>) null, null); + } + + public ProcessorNode(final String name, + final Processor<KIn, VIn, KOut, VOut> processor, + final Set<String> stateStores) { + + this.name = name; + this.processor = processor; + this.children = new ArrayList<>(); + this.childByName = new HashMap<>(); + this.stateStores = stateStores; + this.time = new SystemTime(); } public ProcessorNode(final String name, Review comment: It will actually get removed later on in the KIP-478 implementation. What will happen is that the DSL and the PAPI will adapt the deprecated Processors to the new ones, and we can completely remove all mentions of the deprecated Processors in the internals. But for now, if we deprecate this constructor, it'll just obligate us to suppress the deprecation warning in a bunch of other places. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org