Use 'instanceof' pattern variable
Update authors and copyright years Fixing checkstyle issue
This commit is contained in:
committed by
Soby Chacko
parent
b49fde97c8
commit
7895025c47
@@ -944,8 +944,8 @@ to apply, you need to use a 'BinderCustomizer' to set the container customizer (
|
||||
@Bean
|
||||
public BinderCustomizer binderCustomizer(ListenerContainerWithDlqAndRetryCustomizer containerCustomizer) {
|
||||
return (binder, binderName) -> {
|
||||
if (binder instanceof KafkaMessageChannelBinder) {
|
||||
((KafkaMessageChannelBinder) binder).setContainerCustomizer(containerCustomizer);
|
||||
if (binder instanceof KafkaMessageChannelBinder kafkaMessageChannelBinder) {
|
||||
kafkaMessageChannelBinder.setContainerCustomizer(containerCustomizer);
|
||||
}
|
||||
else if (binder instanceof KStreamBinder) {
|
||||
...
|
||||
|
||||
@@ -1879,8 +1879,8 @@ Here is an example of providing a `BinderCustomizer` bean.
|
||||
@Bean
|
||||
public BinderCustomizer binderCustomizer() {
|
||||
return (binder, binderName) -> {
|
||||
if (binder instanceof KafkaMessageChannelBinder) {
|
||||
((KafkaMessageChannelBinder) binder).setRebalanceListener(...);
|
||||
if (binder instanceof KafkaMessageChannelBinder kafkaMessageChannelBinder) {
|
||||
kafkaMessageChannelBinder.setRebalanceListener(...);
|
||||
}
|
||||
else if (binder instanceof KStreamBinder) {
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user