Skip to content

Commit 7435da6

Browse files
jakspokmarcusdacoregio
authored andcommitted
Add serialVersionUID to DefaultSavedRequest and SavedCookie
Closes gh-10594
1 parent 75f25bf commit 7435da6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

web/src/main/java/org/springframework/security/web/savedrequest/DefaultSavedRequest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,6 +33,7 @@
3333
import org.apache.commons.logging.Log;
3434
import org.apache.commons.logging.LogFactory;
3535

36+
import org.springframework.security.core.SpringSecurityCoreVersion;
3637
import org.springframework.security.web.PortResolver;
3738
import org.springframework.security.web.util.UrlUtils;
3839
import org.springframework.util.Assert;
@@ -61,6 +62,8 @@
6162
*/
6263
public class DefaultSavedRequest implements SavedRequest {
6364

65+
private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;
66+
6467
protected static final Log logger = LogFactory.getLog(DefaultSavedRequest.class);
6568

6669
private static final String HEADER_IF_NONE_MATCH = "If-None-Match";

web/src/main/java/org/springframework/security/web/savedrequest/SavedCookie.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,13 +20,17 @@
2020

2121
import javax.servlet.http.Cookie;
2222

23+
import org.springframework.security.core.SpringSecurityCoreVersion;
24+
2325
/**
2426
* Stores off the values of a cookie in a serializable holder
2527
*
2628
* @author Ray Krueger
2729
*/
2830
public class SavedCookie implements Serializable {
2931

32+
private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;
33+
3034
private final java.lang.String name;
3135

3236
private final java.lang.String value;

0 commit comments

Comments
 (0)