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


##########
docs/streams/developer-guide/write-streams.html:
##########
@@ -151,7 +151,7 @@ <h2>Using Kafka Streams within your application code<a 
class="headerlink" href="
         For more information, see <a class="reference internal" 
href="../architecture.html#streams_architecture_tasks"><span class="std 
std-ref">Stream Partitions and Tasks</span></a> and <a class="reference 
internal" href="../architecture.html#streams_architecture_threads"><span 
class="std std-ref">Threading Model</span></a>.</p>
       <p>To catch any unexpected exceptions, you can set an <code 
class="docutils literal"><span 
class="pre">java.lang.Thread.UncaughtExceptionHandler</span></code> before you 
start the
         application.  This handler is called whenever a stream thread is 
terminated by an unexpected exception:</p>
-        <pre class="line-numbers"><code class="language-java">// Java 8+, 
using lambda expressions
+        <pre class="line-numbers"><code class="language-java">// Java 11+, 
using lambda expressions
 streams.setUncaughtExceptionHandler((Thread thread, Throwable throwable) -&gt; 
{

Review Comment:
   I think we should remove this comment from the code snippet. If we do, for 
proper formatting, we need to move this line I add the comment on, to the line 
above:
   ```
           <pre class="line-numbers"><code 
class="language-java">streams.setUncaughtExceptionHandler((Thread thread, 
Throwable throwable) -&gt; {
   ```



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