Skip to content

Commit 845a6b0

Browse files
committed
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
1 parent 12c393e commit 845a6b0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

spring-messaging/src/main/java/org/springframework/messaging/MessageHandlingException.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222
* @author Mark Fisher
2323
* @since 4.0
2424
*/
25+
@SuppressWarnings("serial")
2526
public class MessageHandlingException extends MessagingException {
2627

27-
private static final long serialVersionUID = 690969923668400297L;
28-
29-
3028
public MessageHandlingException(Message<?> message, String description) {
3129
super(message, description);
3230
}

spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/MissingSessionUserException.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323
* @author Rossen Stoyanchev
2424
* @since 4.0
2525
*/
26+
@SuppressWarnings("serial")
2627
public class MissingSessionUserException extends MessagingException {
2728

28-
private static final long serialVersionUID = -6905878930083523161L;
29-
30-
3129
public MissingSessionUserException(Message<?> message) {
3230
super(message, "No \"user\" header in message");
3331
}

0 commit comments

Comments
 (0)