Skip to content

Commit 0ac422e

Browse files
committed
Add Nullable to API methods
Annotate the following methods in StreamsBuilderFactoryBean with Nullable. getStreamsUncaughtExceptionHandler getTopology getKafkaStreams
1 parent 9d3d034 commit 0ac422e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-kafka/src/main/java/org/springframework/kafka/config/StreamsBuilderFactoryBean.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ public void setStreamsUncaughtExceptionHandler(StreamsUncaughtExceptionHandler s
217217
* @return {@link StreamsUncaughtExceptionHandler}
218218
* @since 2.8.4
219219
*/
220+
@Nullable
220221
public StreamsUncaughtExceptionHandler getStreamsUncaughtExceptionHandler() {
221222
return this.streamsUncaughtExceptionHandler;
222223
}
@@ -241,6 +242,7 @@ public void setCloseTimeout(int closeTimeout) {
241242
* @return {@link Topology} object
242243
* @since 2.4.4
243244
*/
245+
@Nullable
244246
public Topology getTopology() {
245247
return this.topology;
246248
}
@@ -274,6 +276,7 @@ public void setCleanupConfig(CleanupConfig cleanupConfig) {
274276
* may be null if this {@link StreamsBuilderFactoryBean} hasn't been started.
275277
* @since 1.1.4
276278
*/
279+
@Nullable
277280
public synchronized KafkaStreams getKafkaStreams() {
278281
return this.kafkaStreams;
279282
}

0 commit comments

Comments
 (0)