mjsax commented on code in PR #18778:
URL: https://github.com/apache/kafka/pull/18778#discussion_r1940548959


##########
streams/src/main/java/org/apache/kafka/streams/Topology.java:
##########
@@ -119,10 +119,14 @@ private static AutoOffsetResetInternal 
convertOldToNew(final Topology.AutoOffset
      * @return itself
      *
      * @throws TopologyException
-     *         if the provided source name is not unique, or
-     *         if topics have already been registered by another source,
+     *         if the provided source name is not unique,
+     *         no topics are specified, or
+     *         a topic has already been registered by another source,
      *         {@link #addReadOnlyStateStore(StoreBuilder, String, 
Deserializer, Deserializer, String, String, ProcessorSupplier) read-only state 
store}, or
      *         {@link #addGlobalStore(StoreBuilder, String, Deserializer, 
Deserializer, String, String, ProcessorSupplier) global state store}
+     * @throws NullPointerException
+     *         if {@code name} or {@code topics} is {@code null}, or
+     *         {@code topics} contains a {@code null} topic

Review Comment:
   Not sure if we need/want do document `NullPointerException`? Could be too 
verbose. Added if for now, but also ok if we want to remove it again.
   
   While I was looking into it, I actually did find some stuff in 
`InternalTopologyBuilder` that was not right and I tried to fix it...



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