Remove serialVersionUIDs in spring-messaging Exc.

Prior to this commit, several spring-messaging exceptions
had defined serialVersionUIDs. Those exception aren't
supposed to leave the system via Java serialization; also,
their deserialization is supported only against the same
version of Spring.

Issue: SPR-11339
This commit is contained in:
Brian Clozel 2014-01-22 11:36:24 +01:00
parent 12c393eb6d
commit 845a6b0b7d
2 changed files with 2 additions and 6 deletions

View File

@ -22,11 +22,9 @@ package org.springframework.messaging;
* @author Mark Fisher
* @since 4.0
*/
@SuppressWarnings("serial")
public class MessageHandlingException extends MessagingException {
private static final long serialVersionUID = 690969923668400297L;
public MessageHandlingException(Message<?> message, String description) {
super(message, description);
}

View File

@ -23,11 +23,9 @@ import org.springframework.messaging.MessagingException;
* @author Rossen Stoyanchev
* @since 4.0
*/
@SuppressWarnings("serial")
public class MissingSessionUserException extends MessagingException {
private static final long serialVersionUID = -6905878930083523161L;
public MissingSessionUserException(Message<?> message) {
super(message, "No \"user\" header in message");
}