This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/master by this push:
     new 15e8ba2078 JavascriptReferenceType: Implement Serializable (#664)
15e8ba2078 is described below

commit 15e8ba2078f69ffd722d67abda9bdd1245ef19ec
Author: leccyril <leclerc.cy...@hotmail.fr>
AuthorDate: Wed Sep 27 14:35:50 2023 +0400

    JavascriptReferenceType: Implement Serializable (#664)
    
    * JavascriptReferenceType: Implement Serializable
    
    Implement classes newly added as Serializable to be able to store in cache 
or to be serialized.
    
    Fix 
https://issues.apache.org/jira/projects/WICKET/issues/WICKET-7076?filter=allissues
    
    * JavaScriptReferenceType.java: Change from Serializable to Iclusterable
    
    Following discussion, it is better to use IClusterable as it is used in 
other classes like this.
    
    Fix 
https://issues.apache.org/jira/projects/WICKET/issues/WICKET-7076?filter=allissues
---
 .../java/org/apache/wicket/markup/head/JavaScriptReferenceType.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/wicket-core/src/main/java/org/apache/wicket/markup/head/JavaScriptReferenceType.java
 
b/wicket-core/src/main/java/org/apache/wicket/markup/head/JavaScriptReferenceType.java
index 37f4a452f4..e14ab6f5c4 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/markup/head/JavaScriptReferenceType.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/markup/head/JavaScriptReferenceType.java
@@ -16,13 +16,14 @@
  */
 package org.apache.wicket.markup.head;
 
+import org.apache.wicket.util.io.IClusterable;
 import org.apache.wicket.util.lang.Args;
 
 /**
  * To be used to define the "type" attribute of the script tag written
  * by a {@link AbstractJavaScriptReferenceHeaderItem}.
  */
-public class JavaScriptReferenceType {
+public class JavaScriptReferenceType implements IClusterable {
 
        public static final JavaScriptReferenceType TEXT_JAVASCRIPT = new 
JavaScriptReferenceType("text/javascript");
        public static final JavaScriptReferenceType MODULE = new 
JavaScriptReferenceType("module");

Reply via email to