Skip to content

Commit 7982621

Browse files
committed
Fix embedded kafka javadocs, logger
1 parent dd9890a commit 7982621

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

spring-kafka-test/src/main/java/org/springframework/kafka/test/EmbeddedKafkaBroker.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import org.springframework.beans.factory.DisposableBean;
5151
import org.springframework.beans.factory.InitializingBean;
5252
import org.springframework.kafka.test.core.BrokerAddress;
53-
import org.springframework.kafka.test.rule.EmbeddedKafkaRule;
5453
import org.springframework.retry.backoff.ExponentialBackOffPolicy;
5554
import org.springframework.retry.policy.SimpleRetryPolicy;
5655
import org.springframework.retry.support.RetryTemplate;
@@ -80,7 +79,7 @@
8079
*/
8180
public class EmbeddedKafkaBroker implements InitializingBean, DisposableBean {
8281

83-
private static final Log logger = LogFactory.getLog(EmbeddedKafkaRule.class);
82+
private static final Log logger = LogFactory.getLog(EmbeddedKafkaBroker.class);
8483

8584
public static final String BEAN_NAME = "embeddedKafka";
8685

@@ -146,7 +145,7 @@ public EmbeddedKafkaBroker(int count, boolean controlledShutdown, int partitions
146145
* Specify the properties to configure Kafka Broker before start, e.g.
147146
* {@code auto.create.topics.enable}, {@code transaction.state.log.replication.factor} etc.
148147
* @param brokerProperties the properties to use for configuring Kafka Broker(s).
149-
* @return this for chaining configuration
148+
* @return this for chaining configuration.
150149
* @see KafkaConfig
151150
*/
152151
public EmbeddedKafkaBroker brokerProperties(Map<String, String> brokerProperties) {
@@ -158,7 +157,7 @@ public EmbeddedKafkaBroker brokerProperties(Map<String, String> brokerProperties
158157
* Specify a broker property.
159158
* @param property the property name.
160159
* @param value the value.
161-
* @return the {@link EmbeddedKafkaRule}.
160+
* @return the {@link EmbeddedKafkaBroker}.
162161
*/
163162
public EmbeddedKafkaBroker brokerProperty(String property, Object value) {
164163
this.brokerProperties.put(property, value);
@@ -169,6 +168,7 @@ public EmbeddedKafkaBroker brokerProperty(String property, Object value) {
169168
* Set explicit ports on which the kafka brokers will listen. Useful when running an
170169
* embedded broker that you want to access from other processes.
171170
* @param kafkaPorts the ports.
171+
* @return the {@link EmbeddedKafkaBroker}.
172172
*/
173173
public EmbeddedKafkaBroker kafkaPorts(int... kafkaPorts) {
174174
Assert.isTrue(kafkaPorts.length == this.count, "A port must be provided for each instance ["

spring-kafka-test/src/main/java/org/springframework/kafka/test/rule/EmbeddedKafkaRule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public EmbeddedKafkaRule brokerProperty(String property, Object value) {
9191
* Set explicit ports on which the kafka brokers will listen. Useful when running an
9292
* embedded broker that you want to access from other processes.
9393
* @param kafkaPorts the ports.
94+
* @return the rule.
9495
*/
9596
public EmbeddedKafkaRule kafkaPorts(int... kafkaPorts) {
9697
this.embeddedKafka.kafkaPorts(kafkaPorts);

0 commit comments

Comments
 (0)