Skip to content

Commit c6b2f9c

Browse files
committed
Remove Unnecessary Suppress Warning
Also fix local variable hiding field.
1 parent 9741d28 commit c6b2f9c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

+5-6
Original file line numberDiff line numberDiff line change
@@ -319,18 +319,17 @@ public void stop(Runnable callback) {
319319
}
320320
}
321321

322-
@SuppressWarnings("deprecation")
323322
@Override
324323
public synchronized void start() {
325324
if (!this.running) {
326325
try {
327326
Assert.state(this.properties != null,
328327
"streams configuration properties must not be null");
329-
Topology topology = getObject().build(this.properties); // NOSONAR: getObject() cannot return null
330-
this.infrastructureCustomizer.configureTopology(topology);
331-
this.topology = topology;
332-
LOGGER.debug(() -> topology.describe().toString());
333-
this.kafkaStreams = new KafkaStreams(topology, this.properties, this.clientSupplier);
328+
Topology topol = getObject().build(this.properties); // NOSONAR: getObject() cannot return null
329+
this.infrastructureCustomizer.configureTopology(topol);
330+
this.topology = topol;
331+
LOGGER.debug(() -> topol.describe().toString());
332+
this.kafkaStreams = new KafkaStreams(topol, this.properties, this.clientSupplier);
334333
this.kafkaStreams.setStateListener(this.stateListener);
335334
this.kafkaStreams.setGlobalStateRestoreListener(this.stateRestoreListener);
336335
if (this.streamsUncaughtExceptionHandler != null) {

0 commit comments

Comments
 (0)