Skip to content

Commit 444f928

Browse files
committed
Fix KafkaStreamBrancher doc typos
Fixes #1459
1 parent 1d1a6a7 commit 444f928

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spring-kafka/src/main/java/org/springframework/kafka/support/KafkaStreamBrancher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* Example of usage:
3232
* <pre>
3333
* {@code
34-
* new KafkaStreamsBrancher<String, String>()
34+
* new KafkaStreamBrancher<String, String>()
3535
* .branch((key, value) -> value.contains("A"), ks->ks.to("A"))
3636
* .branch((key, value) -> value.contains("B"), ks->ks.to("B"))
3737
* //default branch should not necessarily be defined in the end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*
3636
* @since 2.2.4
3737
*/
38-
class KafkaStreamsBrancherTests {
38+
class KafkaStreamBrancherTests {
3939

4040
@Test
4141
@SuppressWarnings({ "unchecked", "rawtypes" })

src/reference/asciidoc/streams.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ stream.through(new JsonSerde<>(MyKeyType.class)
149149
----
150150
====
151151

152-
==== Using `KafkaStreamsBrancher`
152+
==== Using `KafkaStreamBrancher`
153153

154154
The `KafkaStreamBrancher` class introduces a more convenient way to build conditional branches on top of `KStream`.
155155

@@ -174,7 +174,7 @@ The following example uses `KafkaStreamBrancher`:
174174
====
175175
[source,java]
176176
----
177-
new KafkaStreamsBrancher<String, String>()
177+
new KafkaStreamBrancher<String, String>()
178178
.branch((key, value) -> value.contains("A"), ks -> ks.to("A"))
179179
.branch((key, value) -> value.contains("B"), ks -> ks.to("B"))
180180
//default branch should not necessarily be defined in the end of the chain!

0 commit comments

Comments
 (0)