Skip to content

Commit 5ebabcf

Browse files
committed
polishing Javadoc for marshalling message converters
1 parent 1141a1d commit 5ebabcf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

org.springframework.jms/src/main/java/org/springframework/jms/support/converter/MappingJacksonMessageConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/**
4242
* Message converter that uses the Jackson library to convert messages to and from JSON.
4343
* Maps an object to a {@link BytesMessage}, or to a {@link TextMessage} if the
44-
* {@link #setTargetType marshalTo} is set to {@link MessageType#TEXT}.
44+
* {@link #setTargetType targetType} is set to {@link MessageType#TEXT}.
4545
* Converts from a {@link TextMessage} or {@link BytesMessage} to an object.
4646
*
4747
* @author Mark Pollack

org.springframework.jms/src/main/java/org/springframework/jms/support/converter/MarshallingMessageConverter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/**
4141
* Spring JMS {@link MessageConverter} that uses a {@link Marshaller} and {@link Unmarshaller}.
4242
* Marshals an object to a {@link BytesMessage}, or to a {@link TextMessage} if the
43-
* {@link #setTargetType marshalTo} is set to {@link MessageType#TEXT}.
43+
* {@link #setTargetType targetType} is set to {@link MessageType#TEXT}.
4444
* Unmarshals from a {@link TextMessage} or {@link BytesMessage} to an object.
4545
*
4646
* @author Arjen Poutsma
@@ -160,7 +160,7 @@ public Message toMessage(Object object, Session session) throws JMSException, Me
160160
throw new MessageConversionException("Could not marshal [" + object + "]", ex);
161161
}
162162
catch (IOException ex) {
163-
throw new MessageConversionException("Could not marshal [" + object + "]", ex);
163+
throw new MessageConversionException("Could not marshal [" + object + "]", ex);
164164
}
165165
}
166166

@@ -299,7 +299,7 @@ protected Object unmarshalFromBytesMessage(BytesMessage message, Unmarshaller un
299299
* Template method that allows for custom message unmarshalling.
300300
* Invoked when {@link #fromMessage(Message)} is invoked with a message
301301
* that is not a {@link TextMessage} or {@link BytesMessage}.
302-
* <p>The default implemenetation throws an {@link IllegalArgumentException}.
302+
* <p>The default implementation throws an {@link IllegalArgumentException}.
303303
* @param message the message
304304
* @param unmarshaller the unmarshaller to use
305305
* @return the unmarshalled object

0 commit comments

Comments
 (0)