Skip to content

Commit

Permalink
JavascriptReferenceType: Implement Serializable (#664)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
leccyril authored Sep 27, 2023
1 parent 922a5fe commit 15e8ba2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 15e8ba2

Please sign in to comment.