@@ -552,7 +552,7 @@ public <T> T execute(ProducerCallback<T> action) throws JmsException {
552
552
553
553
@ Override
554
554
@ Nullable
555
- public <T > T execute (final @ Nullable Destination destination , final ProducerCallback <T > action ) throws JmsException {
555
+ public <T > T execute (@ Nullable Destination destination , ProducerCallback <T > action ) throws JmsException {
556
556
Assert .notNull (action , "Callback object must not be null" );
557
557
return execute (session -> {
558
558
MessageProducer producer = createProducer (session , destination );
@@ -567,7 +567,7 @@ public <T> T execute(final @Nullable Destination destination, final ProducerCall
567
567
568
568
@ Override
569
569
@ Nullable
570
- public <T > T execute (final String destinationName , final ProducerCallback <T > action ) throws JmsException {
570
+ public <T > T execute (String destinationName , ProducerCallback <T > action ) throws JmsException {
571
571
Assert .notNull (action , "Callback object must not be null" );
572
572
return execute (session -> {
573
573
Destination destination = resolveDestinationName (session , destinationName );
@@ -598,15 +598,15 @@ public void send(MessageCreator messageCreator) throws JmsException {
598
598
}
599
599
600
600
@ Override
601
- public void send (final Destination destination , final MessageCreator messageCreator ) throws JmsException {
601
+ public void send (Destination destination , MessageCreator messageCreator ) throws JmsException {
602
602
execute (session -> {
603
603
doSend (session , destination , messageCreator );
604
604
return null ;
605
605
}, false );
606
606
}
607
607
608
608
@ Override
609
- public void send (final String destinationName , final MessageCreator messageCreator ) throws JmsException {
609
+ public void send (String destinationName , MessageCreator messageCreator ) throws JmsException {
610
610
execute (session -> {
611
611
Destination destination = resolveDestinationName (session , destinationName );
612
612
doSend (session , destination , messageCreator );
@@ -678,12 +678,12 @@ public void convertAndSend(Object message) throws JmsException {
678
678
}
679
679
680
680
@ Override
681
- public void convertAndSend (Destination destination , final Object message ) throws JmsException {
681
+ public void convertAndSend (Destination destination , Object message ) throws JmsException {
682
682
send (destination , session -> getRequiredMessageConverter ().toMessage (message , session ));
683
683
}
684
684
685
685
@ Override
686
- public void convertAndSend (String destinationName , final Object message ) throws JmsException {
686
+ public void convertAndSend (String destinationName , Object message ) throws JmsException {
687
687
send (destinationName , session -> getRequiredMessageConverter ().toMessage (message , session ));
688
688
}
689
689
@@ -700,7 +700,7 @@ public void convertAndSend(Object message, MessagePostProcessor postProcessor) t
700
700
701
701
@ Override
702
702
public void convertAndSend (
703
- Destination destination , final Object message , final MessagePostProcessor postProcessor )
703
+ Destination destination , Object message , MessagePostProcessor postProcessor )
704
704
throws JmsException {
705
705
706
706
send (destination , session -> {
@@ -711,7 +711,7 @@ public void convertAndSend(
711
711
712
712
@ Override
713
713
public void convertAndSend (
714
- String destinationName , final Object message , final MessagePostProcessor postProcessor )
714
+ String destinationName , Object message , MessagePostProcessor postProcessor )
715
715
throws JmsException {
716
716
717
717
send (destinationName , session -> {
@@ -910,13 +910,13 @@ public Message sendAndReceive(MessageCreator messageCreator) throws JmsException
910
910
911
911
@ Override
912
912
@ Nullable
913
- public Message sendAndReceive (final Destination destination , final MessageCreator messageCreator ) throws JmsException {
913
+ public Message sendAndReceive (Destination destination , MessageCreator messageCreator ) throws JmsException {
914
914
return executeLocal (session -> doSendAndReceive (session , destination , messageCreator ), true );
915
915
}
916
916
917
917
@ Override
918
918
@ Nullable
919
- public Message sendAndReceive (final String destinationName , final MessageCreator messageCreator ) throws JmsException {
919
+ public Message sendAndReceive (String destinationName , MessageCreator messageCreator ) throws JmsException {
920
920
return executeLocal (session -> {
921
921
Destination destination = resolveDestinationName (session , destinationName );
922
922
return doSendAndReceive (session , destination , messageCreator );
0 commit comments