You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2024/06/01 11:19:04 UTC
(causeway) branch CAUSEWAY-3756 created (now 743e7953d3)
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a change to branch CAUSEWAY-3756
in repository https://gitbox.apache.org/repos/asf/causeway.git
at 743e7953d3 CAUSEWAY-3756: trivial refactoring to make ScalarConvertingModel ...
This branch includes the following new commits:
new 743e7953d3 CAUSEWAY-3756: trivial refactoring to make ScalarConvertingModel ...
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(causeway) 01/01: CAUSEWAY-3756: trivial refactoring to make ScalarConvertingModel ...
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch CAUSEWAY-3756
in repository https://gitbox.apache.org/repos/asf/causeway.git
commit 743e7953d372d1d8a6d61d56bbf92578ab5c0370
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sat Jun 1 12:18:59 2024 +0100
CAUSEWAY-3756: trivial refactoring to make ScalarConvertingModel ...
... for FileUpload, Clob as serializable
---
.../apache/causeway/viewer/wicket/model/models/FileUploadModels.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/viewers/wicket/model/src/main/java/org/apache/causeway/viewer/wicket/model/models/FileUploadModels.java b/viewers/wicket/model/src/main/java/org/apache/causeway/viewer/wicket/model/models/FileUploadModels.java
index aa9cd54d05..7a1bb09169 100644
--- a/viewers/wicket/model/src/main/java/org/apache/causeway/viewer/wicket/model/models/FileUploadModels.java
+++ b/viewers/wicket/model/src/main/java/org/apache/causeway/viewer/wicket/model/models/FileUploadModels.java
@@ -71,10 +71,13 @@ public class FileUploadModels {
final @NonNull ScalarModel scalarModel,
final @NonNull Charset charset) {
+ // Charset is not serializable.
+ // (NB: can't reference 'charset' in constructor, as javac creates a hidden instance field in the inner class)
+ final String charsetName = charset.name();
+
return new ScalarConvertingModel<List<FileUpload>, Clob>(scalarModel) {
private static final long serialVersionUID = 1L;
- private final String charsetName = charset.name(); // Charset is not serializable
@SneakyThrows
@Override