@@ -541,7 +541,7 @@ public void setObservationRegistry(ObservationRegistry observationRegistry) {
541
541
}
542
542
543
543
@ Override
544
- public <T > @ Nullable T execute (final @ Nullable Destination destination , final ProducerCallback <T > action ) throws JmsException {
544
+ public <T > @ Nullable T execute (@ Nullable Destination destination , ProducerCallback <T > action ) throws JmsException {
545
545
Assert .notNull (action , "Callback object must not be null" );
546
546
return execute (session -> {
547
547
MessageProducer producer = createProducer (session , destination );
@@ -555,7 +555,7 @@ public void setObservationRegistry(ObservationRegistry observationRegistry) {
555
555
}
556
556
557
557
@ Override
558
- public <T > @ Nullable T execute (final String destinationName , final ProducerCallback <T > action ) throws JmsException {
558
+ public <T > @ Nullable T execute (String destinationName , ProducerCallback <T > action ) throws JmsException {
559
559
Assert .notNull (action , "Callback object must not be null" );
560
560
return execute (session -> {
561
561
Destination destination = resolveDestinationName (session , destinationName );
@@ -586,15 +586,15 @@ public void send(MessageCreator messageCreator) throws JmsException {
586
586
}
587
587
588
588
@ Override
589
- public void send (final Destination destination , final MessageCreator messageCreator ) throws JmsException {
589
+ public void send (Destination destination , MessageCreator messageCreator ) throws JmsException {
590
590
execute (session -> {
591
591
doSend (session , destination , messageCreator );
592
592
return null ;
593
593
}, false );
594
594
}
595
595
596
596
@ Override
597
- public void send (final String destinationName , final MessageCreator messageCreator ) throws JmsException {
597
+ public void send (String destinationName , MessageCreator messageCreator ) throws JmsException {
598
598
execute (session -> {
599
599
Destination destination = resolveDestinationName (session , destinationName );
600
600
doSend (session , destination , messageCreator );
@@ -666,12 +666,12 @@ public void convertAndSend(Object message) throws JmsException {
666
666
}
667
667
668
668
@ Override
669
- public void convertAndSend (Destination destination , final Object message ) throws JmsException {
669
+ public void convertAndSend (Destination destination , Object message ) throws JmsException {
670
670
send (destination , session -> getRequiredMessageConverter ().toMessage (message , session ));
671
671
}
672
672
673
673
@ Override
674
- public void convertAndSend (String destinationName , final Object message ) throws JmsException {
674
+ public void convertAndSend (String destinationName , Object message ) throws JmsException {
675
675
send (destinationName , session -> getRequiredMessageConverter ().toMessage (message , session ));
676
676
}
677
677
@@ -688,7 +688,7 @@ public void convertAndSend(Object message, MessagePostProcessor postProcessor) t
688
688
689
689
@ Override
690
690
public void convertAndSend (
691
- Destination destination , final Object message , final MessagePostProcessor postProcessor )
691
+ Destination destination , Object message , MessagePostProcessor postProcessor )
692
692
throws JmsException {
693
693
694
694
send (destination , session -> {
@@ -699,7 +699,7 @@ public void convertAndSend(
699
699
700
700
@ Override
701
701
public void convertAndSend (
702
- String destinationName , final Object message , final MessagePostProcessor postProcessor )
702
+ String destinationName , Object message , MessagePostProcessor postProcessor )
703
703
throws JmsException {
704
704
705
705
send (destinationName , session -> {
@@ -735,7 +735,7 @@ public void convertAndSend(
735
735
}
736
736
737
737
@ Override
738
- public @ Nullable Message receiveSelected (String messageSelector ) throws JmsException {
738
+ public @ Nullable Message receiveSelected (@ Nullable String messageSelector ) throws JmsException {
739
739
Destination defaultDestination = getDefaultDestination ();
740
740
if (defaultDestination != null ) {
741
741
return receiveSelected (defaultDestination , messageSelector );
@@ -746,12 +746,12 @@ public void convertAndSend(
746
746
}
747
747
748
748
@ Override
749
- public @ Nullable Message receiveSelected (final Destination destination , final @ Nullable String messageSelector ) throws JmsException {
749
+ public @ Nullable Message receiveSelected (Destination destination , @ Nullable String messageSelector ) throws JmsException {
750
750
return execute (session -> doReceive (session , destination , messageSelector ), true );
751
751
}
752
752
753
753
@ Override
754
- public @ Nullable Message receiveSelected (final String destinationName , final @ Nullable String messageSelector ) throws JmsException {
754
+ public @ Nullable Message receiveSelected (String destinationName , @ Nullable String messageSelector ) throws JmsException {
755
755
return execute (session -> {
756
756
Destination destination = resolveDestinationName (session , destinationName );
757
757
return doReceive (session , destination , messageSelector );
@@ -833,17 +833,17 @@ else if (isClientAcknowledge(session)) {
833
833
}
834
834
835
835
@ Override
836
- public @ Nullable Object receiveSelectedAndConvert (String messageSelector ) throws JmsException {
836
+ public @ Nullable Object receiveSelectedAndConvert (@ Nullable String messageSelector ) throws JmsException {
837
837
return doConvertFromMessage (receiveSelected (messageSelector ));
838
838
}
839
839
840
840
@ Override
841
- public @ Nullable Object receiveSelectedAndConvert (Destination destination , String messageSelector ) throws JmsException {
841
+ public @ Nullable Object receiveSelectedAndConvert (Destination destination , @ Nullable String messageSelector ) throws JmsException {
842
842
return doConvertFromMessage (receiveSelected (destination , messageSelector ));
843
843
}
844
844
845
845
@ Override
846
- public @ Nullable Object receiveSelectedAndConvert (String destinationName , String messageSelector ) throws JmsException {
846
+ public @ Nullable Object receiveSelectedAndConvert (String destinationName , @ Nullable String messageSelector ) throws JmsException {
847
847
return doConvertFromMessage (receiveSelected (destinationName , messageSelector ));
848
848
}
849
849
@@ -881,12 +881,12 @@ else if (isClientAcknowledge(session)) {
881
881
}
882
882
883
883
@ Override
884
- public @ Nullable Message sendAndReceive (final Destination destination , final MessageCreator messageCreator ) throws JmsException {
884
+ public @ Nullable Message sendAndReceive (Destination destination , MessageCreator messageCreator ) throws JmsException {
885
885
return executeLocal (session -> doSendAndReceive (session , destination , messageCreator ), true );
886
886
}
887
887
888
888
@ Override
889
- public @ Nullable Message sendAndReceive (final String destinationName , final MessageCreator messageCreator ) throws JmsException {
889
+ public @ Nullable Message sendAndReceive (String destinationName , MessageCreator messageCreator ) throws JmsException {
890
890
return executeLocal (session -> {
891
891
Destination destination = resolveDestinationName (session , destinationName );
892
892
return doSendAndReceive (session , destination , messageCreator );
@@ -986,7 +986,7 @@ else if (isClientAcknowledge(session)) {
986
986
}
987
987
988
988
@ Override
989
- public <T > @ Nullable T browseSelected (String messageSelector , BrowserCallback <T > action ) throws JmsException {
989
+ public <T > @ Nullable T browseSelected (@ Nullable String messageSelector , BrowserCallback <T > action ) throws JmsException {
990
990
Queue defaultQueue = getDefaultQueue ();
991
991
if (defaultQueue != null ) {
992
992
return browseSelected (defaultQueue , messageSelector , action );
@@ -997,7 +997,7 @@ else if (isClientAcknowledge(session)) {
997
997
}
998
998
999
999
@ Override
1000
- public <T > @ Nullable T browseSelected (final Queue queue , final @ Nullable String messageSelector , final BrowserCallback <T > action )
1000
+ public <T > @ Nullable T browseSelected (Queue queue , @ Nullable String messageSelector , BrowserCallback <T > action )
1001
1001
throws JmsException {
1002
1002
1003
1003
Assert .notNull (action , "Callback object must not be null" );
@@ -1013,7 +1013,7 @@ else if (isClientAcknowledge(session)) {
1013
1013
}
1014
1014
1015
1015
@ Override
1016
- public <T > @ Nullable T browseSelected (final String queueName , final @ Nullable String messageSelector , final BrowserCallback <T > action )
1016
+ public <T > @ Nullable T browseSelected (String queueName , @ Nullable String messageSelector , BrowserCallback <T > action )
1017
1017
throws JmsException {
1018
1018
1019
1019
Assert .notNull (action , "Callback object must not be null" );
0 commit comments