Skip to content

Commit e76fbcb

Browse files
marcwrobelsbrannen
authored andcommitted
Fix and improve Javadoc in spring-jms
See gh-28800
1 parent 82ca27e commit e76fbcb

13 files changed

+22
-22
lines changed

spring-jms/src/main/java/org/springframework/jms/config/JmsListenerEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public interface JmsListenerEndpoint {
3434
String getId();
3535

3636
/**
37-
* Setup the specified message listener container with the model
37+
* Set up the specified message listener container with the model
3838
* defined by this endpoint.
3939
* <p>This endpoint must provide the requested missing option(s) of
4040
* the specified container to make it usable. Usually, this is about

spring-jms/src/main/java/org/springframework/jms/config/JmsListenerEndpointRegistry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public Collection<MessageListenerContainer> getListenerContainers() {
121121
/**
122122
* Create a message listener container for the given {@link JmsListenerEndpoint}.
123123
* <p>This create the necessary infrastructure to honor that endpoint
124-
* with regards to its configuration.
124+
* with regard to its configuration.
125125
* <p>The {@code startImmediately} flag determines if the container should be
126126
* started immediately.
127127
* @param endpoint the endpoint to add
@@ -153,7 +153,7 @@ public void registerListenerContainer(JmsListenerEndpoint endpoint, JmsListenerC
153153
/**
154154
* Create a message listener container for the given {@link JmsListenerEndpoint}.
155155
* <p>This create the necessary infrastructure to honor that endpoint
156-
* with regards to its configuration.
156+
* with regard to its configuration.
157157
* @param endpoint the endpoint to add
158158
* @param factory the listener factory to use
159159
* @see #registerListenerContainer(JmsListenerEndpoint, JmsListenerContainerFactory, boolean)

spring-jms/src/main/java/org/springframework/jms/connection/UserCredentialsConnectionFactoryAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void afterPropertiesSet() {
123123

124124

125125
/**
126-
* Set user credententials for this proxy and the current thread.
126+
* Set user credentials for this proxy and the current thread.
127127
* The given username and password will be applied to all subsequent
128128
* {@code createConnection()} calls on this ConnectionFactory proxy.
129129
* <p>This will override any statically specified user credentials,

spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public boolean isPubSubNoLocal() {
465465

466466
/**
467467
* Configure the reply destination type. By default, the configured {@code pubSubDomain}
468-
* value is used (see {@link #isPubSubDomain()}.
468+
* value is used (see {@link #isPubSubDomain()}).
469469
* <p>This setting primarily indicates what type of destination to resolve if dynamic
470470
* destinations are enabled.
471471
* @param replyPubSubDomain "true" for the Publish/Subscribe domain ({@link Topic Topics}),

spring-jms/src/main/java/org/springframework/jms/listener/DefaultMessageListenerContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ protected void establishSharedConnection() {
872872
}
873873

874874
/**
875-
* This implementations proceeds even after an exception thrown from
875+
* This implementation proceeds even after an exception thrown from
876876
* {@code Connection.start()}, relying on listeners to perform
877877
* appropriate recovery.
878878
*/
@@ -887,7 +887,7 @@ protected void startSharedConnection() {
887887
}
888888

889889
/**
890-
* This implementations proceeds even after an exception thrown from
890+
* This implementation proceeds even after an exception thrown from
891891
* {@code Connection.stop()}, relying on listeners to perform
892892
* appropriate recovery after a restart.
893893
*/

spring-jms/src/main/java/org/springframework/jms/listener/MessageListenerContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public interface MessageListenerContainer extends SmartLifecycle {
3434

3535
/**
36-
* Setup the message listener to use. Throws an {@link IllegalArgumentException}
36+
* Set up the message listener to use. Throws an {@link IllegalArgumentException}
3737
* if that message listener type is not supported.
3838
*/
3939
void setupMessageListener(Object messageListener);

spring-jms/src/main/java/org/springframework/jms/listener/SubscriptionNameProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818

1919
/**
2020
* Interface to be implemented by message listener objects that suggest a specific
21-
* name for a durable subscription that they might be registered with. Otherwise
21+
* name for a durable subscription that they might be registered with. Otherwise,
2222
* the listener class name will be used as a default subscription name.
2323
*
2424
* <p>Applies to {@link javax.jms.MessageListener} objects as well as to
2525
* {@link SessionAwareMessageListener} objects and plain listener methods
26-
* (as supported by {@link org.springframework.jms.listener.adapter.MessageListenerAdapter}.
26+
* (as supported by {@link org.springframework.jms.listener.adapter.MessageListenerAdapter}).
2727
*
2828
* @author Juergen Hoeller
2929
* @since 2.5.6

spring-jms/src/main/java/org/springframework/jms/listener/adapter/MessageListenerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* Message listener adapter that delegates the handling of messages to target
3737
* listener methods via reflection, with flexible message type conversion.
3838
* Allows listener methods to operate on message content types, completely
39-
* independent from the JMS API.
39+
* independent of the JMS API.
4040
*
4141
* <p>By default, the content of incoming JMS messages gets extracted before
4242
* being passed into the target listener method, to let the target method

spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsActivationSpecConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public String getMessageSelector() {
182182
* <p>Note that JCA resource adapters generally only support auto and dups-ok
183183
* (see Spring's {@link StandardJmsActivationSpecFactory}). ActiveMQ also
184184
* supports "SESSION_TRANSACTED" in the form of RA-managed transactions
185-
* (automatically translated by Spring's {@link DefaultJmsActivationSpecFactory}.
185+
* (automatically translated by Spring's {@link DefaultJmsActivationSpecFactory}).
186186
* @param constantName the name of the {@link Session} acknowledge mode constant
187187
* @see javax.jms.Session#AUTO_ACKNOWLEDGE
188188
* @see javax.jms.Session#CLIENT_ACKNOWLEDGE

spring-jms/src/main/java/org/springframework/jms/listener/endpoint/StandardJmsActivationSpecFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ else if (config.isSubscriptionDurable()) {
192192
* case of {@code CLIENT_ACKNOWLEDGE} or {@code SESSION_TRANSACTED}
193193
* having been requested.
194194
* @param bw the BeanWrapper wrapping the ActivationSpec object
195-
* @param ackMode the configured acknowledge mode
196-
* (according to the constants in {@link javax.jms.Session}
195+
* @param ackMode the configured acknowledgment mode
196+
* (according to the constants in {@link javax.jms.Session})
197197
* @see javax.jms.Session#AUTO_ACKNOWLEDGE
198198
* @see javax.jms.Session#DUPS_OK_ACKNOWLEDGE
199199
* @see javax.jms.Session#CLIENT_ACKNOWLEDGE

0 commit comments

Comments
 (0)