Skip to content

Commit

Permalink
Add serialVersionUID to DefaultSavedRequest and SavedCookie
Browse files Browse the repository at this point in the history
Closes gh-10594
  • Loading branch information
jakspok authored and marcusdacoregio committed Jan 18, 2022
1 parent 75f25bf commit 7435da6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -33,6 +33,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.springframework.security.core.SpringSecurityCoreVersion;
import org.springframework.security.web.PortResolver;
import org.springframework.security.web.util.UrlUtils;
import org.springframework.util.Assert;
Expand Down Expand Up @@ -61,6 +62,8 @@
*/
public class DefaultSavedRequest implements SavedRequest {

private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;

protected static final Log logger = LogFactory.getLog(DefaultSavedRequest.class);

private static final String HEADER_IF_NONE_MATCH = "If-None-Match";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,13 +20,17 @@

import javax.servlet.http.Cookie;

import org.springframework.security.core.SpringSecurityCoreVersion;

/**
* Stores off the values of a cookie in a serializable holder
*
* @author Ray Krueger
*/
public class SavedCookie implements Serializable {

private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;

private final java.lang.String name;

private final java.lang.String value;
Expand Down

0 comments on commit 7435da6

Please sign in to comment.