This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 8f1c1956a0 Make cart Serializable (helps with session persistence
testing)
8f1c1956a0 is described below
commit 8f1c1956a0f3dfad2bcd67a5b575c263334b9751
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Dec 4 17:17:04 2024 +0000
Make cart Serializable (helps with session persistence testing)
---
webapps/examples/WEB-INF/classes/sessions/DummyCart.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/webapps/examples/WEB-INF/classes/sessions/DummyCart.java
b/webapps/examples/WEB-INF/classes/sessions/DummyCart.java
index 7088557b95..5e1df6fa1a 100644
--- a/webapps/examples/WEB-INF/classes/sessions/DummyCart.java
+++ b/webapps/examples/WEB-INF/classes/sessions/DummyCart.java
@@ -16,11 +16,15 @@
*/
package sessions;
+import java.io.Serializable;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
-public class DummyCart {
+public class DummyCart implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
final Set<Item> items = Collections.synchronizedSet(new HashSet<>());
int itemId = -1;
String submit = null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]