machov opened a new pull request, #10953: URL: https://github.com/apache/nifi/pull/10953
## Description Improves the Javadoc example for by replacing incomplete TODO placeholder with a complete, working code example. ## Changes Made - **Removed TODO comment** and provided concrete byte sequence assignment - **Fixed incorrect class name** in example ( -> ) - **Added proper type casting** for method call - **Provided realistic example** using newline delimiter search pattern - **Added explanatory comment** to clarify the search purpose ## Impact This change improves developer experience by providing a complete, copy-paste ready example instead of leaving developers to figure out the missing implementation details. The newline delimiter example is a common real-world use case that demonstrates practical usage of the ring buffer for stream processing. ## Example Before/After **Before:** ```java final byte[] searchSequence; //TODO assignment final CircularBuffer buffer = new CircularBuffer(searchSequence); ``` **After:** ```java // Search for newline delimiter in a stream final byte[] searchSequence = "\n".getBytes(); final NaiveSearchRingBuffer buffer = new NaiveSearchRingBuffer(searchSequence); ``` -- 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]
