You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2023/09/27 10:37:01 UTC

[wicket] branch wicket-9.x updated: JavascriptReferenceType: Implement Serializable (#664)

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

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


The following commit(s) were added to refs/heads/wicket-9.x by this push:
     new a4098817e3 JavascriptReferenceType: Implement Serializable (#664)
a4098817e3 is described below

commit a4098817e34abfd38caedfe314019acb440a7866
Author: leccyril <le...@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
    
    (cherry picked from commit 15e8ba2078f69ffd722d67abda9bdd1245ef19ec)
---
 .../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");