From c7a190ea43b6d69e0c40a5bdd48eae5a09ecbeaa Mon Sep 17 00:00:00 2001
From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com>
Date: Wed, 3 Dec 2025 12:06:39 -0300
Subject: [PATCH 1/8] chore: add license headers
---
.../ClassInstrumentationJacksonHelper.java | 19 +++++++++++++++++++
.../jsonmigration/BaseClientCallable.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallable_D__V.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallable_I__V.java | 19 +++++++++++++++++++
.../ClientCallable_JsonArray__V.java | 19 +++++++++++++++++++
.../ClientCallable_JsonBoolean__V.java | 19 +++++++++++++++++++
.../ClientCallable_JsonNull__V.java | 19 +++++++++++++++++++
.../ClientCallable_JsonNumber__V.java | 19 +++++++++++++++++++
.../ClientCallable_JsonObject__V.java | 19 +++++++++++++++++++
.../ClientCallable_JsonString__V.java | 19 +++++++++++++++++++
.../ClientCallable_JsonValue__V.java | 19 +++++++++++++++++++
.../ClientCallable_String__V.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallable_Z__V.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallable__D.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallable__I.java | 19 +++++++++++++++++++
.../ClientCallable__Integer.java | 19 +++++++++++++++++++
.../ClientCallable__JsonArray.java | 19 +++++++++++++++++++
.../ClientCallable__JsonBoolean.java | 19 +++++++++++++++++++
.../ClientCallable__JsonNull.java | 19 +++++++++++++++++++
.../ClientCallable__JsonNumber.java | 19 +++++++++++++++++++
.../ClientCallable__JsonObject.java | 19 +++++++++++++++++++
.../ClientCallable__JsonString.java | 19 +++++++++++++++++++
.../ClientCallable__JsonValue.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallable__V.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallable__Z.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallablesTest.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallablesTest24.java | 19 +++++++++++++++++++
.../jsonmigration/ClientCallablesTest25.java | 19 +++++++++++++++++++
...ExtendsLegacyClientCallablePrivate__V.java | 19 +++++++++++++++++++
.../LegacyClientCallablePrivate_D__V.java | 19 +++++++++++++++++++
.../LegacyClientCallablePrivate_I__V.java | 19 +++++++++++++++++++
...acyClientCallablePrivate_JsonArray__V.java | 19 +++++++++++++++++++
...yClientCallablePrivate_JsonBoolean__V.java | 19 +++++++++++++++++++
...gacyClientCallablePrivate_JsonNull__V.java | 19 +++++++++++++++++++
...cyClientCallablePrivate_JsonNumber__V.java | 19 +++++++++++++++++++
...cyClientCallablePrivate_JsonObject__V.java | 19 +++++++++++++++++++
...cyClientCallablePrivate_JsonString__V.java | 19 +++++++++++++++++++
...acyClientCallablePrivate_JsonValue__V.java | 19 +++++++++++++++++++
...LegacyClientCallablePrivate_String__V.java | 19 +++++++++++++++++++
.../LegacyClientCallablePrivate_Z__V.java | 19 +++++++++++++++++++
.../LegacyClientCallablePrivate__D.java | 19 +++++++++++++++++++
.../LegacyClientCallablePrivate__I.java | 19 +++++++++++++++++++
.../LegacyClientCallablePrivate__Integer.java | 19 +++++++++++++++++++
...egacyClientCallablePrivate__JsonArray.java | 19 +++++++++++++++++++
...acyClientCallablePrivate__JsonBoolean.java | 19 +++++++++++++++++++
...LegacyClientCallablePrivate__JsonNull.java | 19 +++++++++++++++++++
...gacyClientCallablePrivate__JsonNumber.java | 19 +++++++++++++++++++
...gacyClientCallablePrivate__JsonObject.java | 19 +++++++++++++++++++
...gacyClientCallablePrivate__JsonString.java | 19 +++++++++++++++++++
...egacyClientCallablePrivate__JsonValue.java | 19 +++++++++++++++++++
.../LegacyClientCallablePrivate__V.java | 19 +++++++++++++++++++
.../LegacyClientCallablePrivate__Z.java | 19 +++++++++++++++++++
.../LegacyClientCallable_D__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_I__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_JsonArray__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_JsonBoolean__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_JsonNull__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_JsonNumber__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_JsonObject__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_JsonString__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_JsonValue__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_String__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable_Z__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable__D.java | 19 +++++++++++++++++++
.../LegacyClientCallable__I.java | 19 +++++++++++++++++++
.../LegacyClientCallable__Integer.java | 19 +++++++++++++++++++
.../LegacyClientCallable__JsonArray.java | 19 +++++++++++++++++++
.../LegacyClientCallable__JsonBoolean.java | 19 +++++++++++++++++++
.../LegacyClientCallable__JsonNull.java | 19 +++++++++++++++++++
.../LegacyClientCallable__JsonNumber.java | 19 +++++++++++++++++++
.../LegacyClientCallable__JsonObject.java | 19 +++++++++++++++++++
.../LegacyClientCallable__JsonString.java | 19 +++++++++++++++++++
.../LegacyClientCallable__JsonValue.java | 19 +++++++++++++++++++
.../LegacyClientCallable__V.java | 19 +++++++++++++++++++
.../LegacyClientCallable__Z.java | 19 +++++++++++++++++++
.../LegacyClientCallablesPrivateTest.java | 19 +++++++++++++++++++
.../LegacyClientCallablesPrivateTest24.java | 19 +++++++++++++++++++
.../LegacyClientCallablesPrivateTest25.java | 19 +++++++++++++++++++
.../LegacyClientCallablesTest.java | 19 +++++++++++++++++++
.../LegacyClientCallablesTest24.java | 19 +++++++++++++++++++
.../LegacyClientCallablesTest25.java | 19 +++++++++++++++++++
81 files changed, 1539 insertions(+)
diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationJacksonHelper.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationJacksonHelper.java
index 3de4924..77e0a67 100644
--- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationJacksonHelper.java
+++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationJacksonHelper.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonArray;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/BaseClientCallable.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/BaseClientCallable.java
index a18d1e3..b78268a 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/BaseClientCallable.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/BaseClientCallable.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import com.vaadin.flow.component.html.Div;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_D__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_D__V.java
index 200300c..7eb1345 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_D__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_D__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_I__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_I__V.java
index e1c6b64..de5350e 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_I__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_I__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonArray__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonArray__V.java
index e0a8e4b..eb4a2bc 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonArray__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonArray__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonBoolean__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonBoolean__V.java
index 5827387..ed09ef5 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonBoolean__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonBoolean__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonNull__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonNull__V.java
index 76c8e83..467b5d3 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonNull__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonNull__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonNumber__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonNumber__V.java
index aed624e..e524eb2 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonNumber__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonNumber__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonObject__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonObject__V.java
index bf57234..0dfa161 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonObject__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonObject__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonString__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonString__V.java
index 8ec0a0c..9d0bf25 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonString__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonString__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonValue__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonValue__V.java
index d67944d..f2cb541 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonValue__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_JsonValue__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_String__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_String__V.java
index b287f3a..fc26903 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_String__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_String__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_Z__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_Z__V.java
index ed40c9e..19e51d1 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_Z__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable_Z__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__D.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__D.java
index 4849317..345df4c 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__D.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__D.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__I.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__I.java
index f6285ed..34c0d45 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__I.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__I.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Integer.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Integer.java
index cc45c7b..8620d6a 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Integer.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Integer.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonArray.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonArray.java
index d44c3fa..cfcfdb1 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonArray.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonArray.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonBoolean.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonBoolean.java
index 75dd3a0..c23cc29 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonBoolean.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonBoolean.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNull.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNull.java
index 7c80c5b..db18ce6 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNull.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNull.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNumber.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNumber.java
index 5771266..c53dd23 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNumber.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNumber.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonObject.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonObject.java
index 4c46549..ccfaf68 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonObject.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonObject.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonString.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonString.java
index 286999d..85aa3e8 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonString.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonString.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonValue.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonValue.java
index 67ec848..773be1a 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonValue.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonValue.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__V.java
index dd86972..a7ccc5c 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Z.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Z.java
index f71235d..86f42e7 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Z.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Z.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest.java
index a8196e5..d498f3d 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import static org.junit.Assert.assertEquals;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest24.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest24.java
index 221a653..a8f9ddb 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest24.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest24.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest25.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest25.java
index 6ba2708..92e17b7 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest25.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest25.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ExtendsLegacyClientCallablePrivate__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ExtendsLegacyClientCallablePrivate__V.java
index 6400df3..a5bfcac 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ExtendsLegacyClientCallablePrivate__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ExtendsLegacyClientCallablePrivate__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class ExtendsLegacyClientCallablePrivate__V extends LegacyClientCallablePrivate__V {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_D__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_D__V.java
index f44f452..2f9b32f 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_D__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_D__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate_D__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_I__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_I__V.java
index 896e3b0..3f196d5 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_I__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_I__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate_I__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonArray__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonArray__V.java
index 2fa0868..788ca16 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonArray__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonArray__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonArray;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonBoolean__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonBoolean__V.java
index 25a9b50..1196917 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonBoolean__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonBoolean__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonBoolean;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonNull__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonNull__V.java
index aa9fbfe..ee4fd38 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonNull__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonNull__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonNull;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonNumber__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonNumber__V.java
index 72c559e..ad683a0 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonNumber__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonNumber__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonNumber;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonObject__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonObject__V.java
index 88e4e65..6263fd0 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonObject__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonObject__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonObject;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonString__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonString__V.java
index cc59dfc..5fd872f 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonString__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonString__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonString;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonValue__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonValue__V.java
index 72d8a34..4c17e71 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonValue__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_JsonValue__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonValue;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_String__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_String__V.java
index 91af544..7f4baa9 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_String__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_String__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate_String__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_Z__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_Z__V.java
index cac566c..b7ebaf0 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_Z__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate_Z__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate_Z__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__D.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__D.java
index c176599..2f9b478 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__D.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__D.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate__D extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__I.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__I.java
index d60bf00..96786d3 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__I.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__I.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate__I extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Integer.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Integer.java
index 05a646f..126a628 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Integer.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Integer.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate__Integer extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonArray.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonArray.java
index 59285c4..782c339 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonArray.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonArray.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonBoolean.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonBoolean.java
index 40abc55..7ebcbd5 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonBoolean.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonBoolean.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNull.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNull.java
index f2a1a56..367fc0a 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNull.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNull.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNumber.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNumber.java
index a7ee35e..c40a410 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNumber.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNumber.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonObject.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonObject.java
index d797e02..4b4820d 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonObject.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonObject.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonString.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonString.java
index 08545f4..b3467e9 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonString.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonString.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonValue.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonValue.java
index f6eb10e..ef89228 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonValue.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonValue.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__V.java
index 8e6fb84..a5459a3 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Z.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Z.java
index 54a4d1f..27f0940 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Z.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Z.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallablePrivate__Z extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_D__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_D__V.java
index 21b6aef..e1ef04f 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_D__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_D__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable_D__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_I__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_I__V.java
index 24db69d..66ada29 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_I__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_I__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable_I__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonArray__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonArray__V.java
index 7bebb78..a1dc737 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonArray__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonArray__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonArray;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonBoolean__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonBoolean__V.java
index 71f290f..d4d76e3 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonBoolean__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonBoolean__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonBoolean;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonNull__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonNull__V.java
index 8f0be35..e6a2c1d 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonNull__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonNull__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonNull;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonNumber__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonNumber__V.java
index 14774e5..9aaf895 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonNumber__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonNumber__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonNumber;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonObject__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonObject__V.java
index f433f4d..f06f6e5 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonObject__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonObject__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonObject;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonString__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonString__V.java
index 4357afd..70a7a7f 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonString__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonString__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonString;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonValue__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonValue__V.java
index e1274a9..5504249 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonValue__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_JsonValue__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.JsonValue;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_String__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_String__V.java
index 34b8dbf..0aa55c8 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_String__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_String__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable_String__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_Z__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_Z__V.java
index 13a3413..219c002 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_Z__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable_Z__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable_Z__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__D.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__D.java
index 5ff6d1f..cb5c548 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__D.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__D.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable__D extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__I.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__I.java
index 3dc6375..6c10d8e 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__I.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__I.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable__I extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Integer.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Integer.java
index feeacf1..9b5216e 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Integer.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Integer.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable__Integer extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonArray.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonArray.java
index 9d5c6fc..4c6766d 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonArray.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonArray.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonBoolean.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonBoolean.java
index f75221e..e3b261d 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonBoolean.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonBoolean.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNull.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNull.java
index 9752510..e06a535 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNull.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNull.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNumber.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNumber.java
index 7e26cf7..c11e83a 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNumber.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNumber.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonObject.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonObject.java
index 2d91759..2874f83 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonObject.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonObject.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonString.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonString.java
index bfbd375..69b333e 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonString.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonString.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonValue.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonValue.java
index ff00ae3..63b0475 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonValue.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonValue.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import elemental.json.Json;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__V.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__V.java
index d41afcd..a0cfa59 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__V.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__V.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable__V extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Z.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Z.java
index e53afdf..5ea52a7 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Z.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Z.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
public class LegacyClientCallable__Z extends BaseClientCallable {
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest.java
index fdb7b8f..3e4bf1e 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import static org.junit.Assert.assertEquals;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest24.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest24.java
index a73df01..3c911d2 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest24.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest24.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import com.vaadin.flow.component.Component;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest25.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest25.java
index a6245ff..67a8717 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest25.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest25.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import com.vaadin.flow.component.Component;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest.java
index c5e7052..eacb46c 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import static org.junit.Assert.assertEquals;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest24.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest24.java
index 27c7d21..72916bb 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest24.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest24.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import com.vaadin.flow.component.Component;
diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest25.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest25.java
index 0942a3d..53a46a6 100644
--- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest25.java
+++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesTest25.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * Json Migration Helper
+ * %%
+ * Copyright (C) 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.jsonmigration;
import com.vaadin.flow.component.Component;
From 82c59ea667720b69e77df43fe79e2c53f23eb748 Mon Sep 17 00:00:00 2001
From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com>
Date: Wed, 3 Dec 2025 12:07:21 -0300
Subject: [PATCH 2/8] ci: update scm info
---
pom.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
index a2a2379..fedf61a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,9 +36,9 @@
- * This class provides methods to dynamically create subclasses of a given parent class using + *
This class provides methods to dynamically create subclasses of a given parent class using * bytecode instrumentation. Methods annotated with {@link ClientCallable} that return a type - * assignable to {@link JsonValue} are automatically overridden to convert the result through - * {@link JsonMigration#convertToClientCallableResult(JsonValue)}. - *
+ * assignable to {@link JsonValue} are automatically overridden to convert the result through {@link + * JsonMigration#convertToClientCallableResult(JsonValue)}. * * @author Javier Godoy / Flowing Code */ @@ -70,8 +68,8 @@ final class ClassInstrumentationUtil { static { boolean isPresent; try { - Class.forName("org.objectweb.asm.ClassWriter", false, - ClassInstrumentationUtil.class.getClassLoader()); + Class.forName( + "org.objectweb.asm.ClassWriter", false, ClassInstrumentationUtil.class.getClassLoader()); isPresent = true; } catch (ClassNotFoundException e) { isPresent = false; @@ -87,27 +85,24 @@ final class ClassInstrumentationUtil { * Creates and returns an instance of a dynamically instrumented class that extends the specified * parent class. * - *- * This method generates a new class at runtime that extends {@code parent}, and returns a new + *
This method generates a new class at runtime that extends {@code parent}, and returns a new * instance of that generated class. The instrumented class will have a default constructor that - * delegates to the parent's default constructor. All methods annotated with - * {@link ClientCallable} that return a type assignable to {@link JsonValue} will be overridden to + * delegates to the parent's default constructor. All methods annotated with {@link + * ClientCallable} that return a type assignable to {@link JsonValue} will be overridden to * convert the result via JsonMigration.convertClientCallableResult(). - *
* - *- * Requirements: - *
+ *Requirements: + * *
- * Handlers can only be added before the execution has been sent to the
- * browser.
- *
- * @param resultHandler
- * a handler for the JSON representation of the value from a
- * successful execution, not
- * A handler can only be added before the execution has been sent to the
- * browser.
- *
- * @param resultHandler
- * a handler for the JSON representation of the return value from
- * a successful execution, not
- * Handlers can only be added before the execution has been sent to the
- * browser.
- *
- * @param targetType
- * the type to convert the JavaScript return value to, not
- * Handlers can only be added before the execution has been sent to the browser.
+ *
+ * @param resultHandler a handler for the JSON representation of the value from a successful
+ * execution, not A handler can only be added before the execution has been sent to the browser.
+ *
+ * @param resultHandler a handler for the JSON representation of the return value from a
+ * successful execution, not Handlers can only be added before the execution has been sent to the browser.
+ *
+ * @param targetType the type to convert the JavaScript return value to, not
- * A handler can only be added before the execution has been sent to the
- * browser.
- *
- * @param targetType
- * the type to convert the JavaScript return value to, not
- *
- * A completable future can only be created before the execution has been
- * sent to the browser.
- *
- * @param targetType
- * the type to convert the JavaScript return value to, not
- *
- * A completable future can only be created before the execution has been
- * sent to the browser.
- *
- * @return a completable future that will be completed based on the
- * execution results, not A handler can only be added before the execution has been sent to the browser.
+ *
+ * @param targetType the type to convert the JavaScript return value to, not A completable future can only be created before the execution has been sent to the browser.
+ *
+ * @param targetType the type to convert the JavaScript return value to, not A completable future can only be created before the execution has been sent to the browser.
+ *
+ * @return a completable future that will be completed based on the execution results, not
- * Supported types are
+ *
+ * Supported types are
+ *
*
+ *
* @author Vaadin Ltd
*/
public class JsonCodec {
- /**
- * Decodes the given JSON value as the given type.
- *
- * Supported types are {@link String}, {@link Boolean}, {@link Integer},
- * {@link Double} and primitives boolean, int, double
- *
- * @param Supported types are {@link String}, {@link Boolean}, {@link Integer}, {@link Double} and
+ * primitives boolean, int, double
+ *
+ * @param
- * This utility class detects the runtime version and uses version-specific helpers
- * to ensure that code calling its methods does not need to be aware of underlying
- * Vaadin API changes.
- *
+ * Provides a compatibility layer for JSON handling to abstract away breaking changes introduced in
+ * Vaadin version 25.
+ *
+ * This utility class detects the runtime version and uses version-specific helpers to ensure
+ * that code calling its methods does not need to be aware of underlying Vaadin API changes.
+ *
* @author Javier Godoy
*/
@UtilityClass
public class JsonMigration {
private static final JsonMigrationHelper helper = initializeHelper();
-
+
@SneakyThrows
private static JsonMigrationHelper initializeHelper() {
- if (Version.getMajorVersion()>24) {
- Class> helperType = Class.forName(JsonMigration.class.getName()+"Helper25");
- return (JsonMigrationHelper) helperType.getConstructor().newInstance();
+ if (Version.getMajorVersion() > 24) {
+ Class> helperType = Class.forName(JsonMigration.class.getName() + "Helper25");
+ return (JsonMigrationHelper) helperType.getConstructor().newInstance();
} else {
return new LegacyJsonMigrationHelper();
}
}
-
+
private static final Class> BASE_JSON_NODE = lookup_BaseJsonNode();
private static Class> lookup_BaseJsonNode() {
- try {
+ try {
return Class.forName("tools.jackson.databind.node.BaseJsonNode");
} catch (ClassNotFoundException e) {
return null;
}
- }
-
+ }
+
/**
* Converts a given Java object into the return type of a {@link ClientCallable method}.
*
- * In Vaadin 25, this method converts {@code JsonValue} into {@code JsonNode}.
+ * In Vaadin 25, this method converts {@code JsonValue} into {@code JsonNode}.
*
* @param object the object to convert
* @return an {@code Object} suitable to use as the result of a {@code ClientCallable} method.
@@ -82,8 +81,8 @@ public static This method delegates the conversion to a version-specific helper to handle
- * any differences in the serialization process.
+ * This method delegates the conversion to a version-specific helper to handle any differences
+ * in the serialization process.
*
* @param object the object to convert
* @return the {@code JsonValue} representation of the object
@@ -96,13 +95,12 @@ public static JsonValue convertToJsonValue(Object object) {
private static Object invoke(Method method, Object instance, Object... args) {
return helper.invoke(method, instance, args);
}
-
-
+
private static Method Element_setPropertyJson = lookup_setPropertyJson();
@SneakyThrows
private static Method lookup_setPropertyJson() {
- if (Version.getMajorVersion()>24) {
+ if (Version.getMajorVersion() > 24) {
return Element.class.getMethod("setPropertyJson", String.class, BASE_JSON_NODE);
} else {
return Element.class.getMethod("setPropertyJson", String.class, JsonValue.class);
@@ -117,16 +115,16 @@ private static Method lookup_getEventData() {
}
/**
- * Sets a JSON-valued property on a given {@code Element}, transparently handling
- * version-specific method signatures.
+ * Sets a JSON-valued property on a given {@code Element}, transparently handling version-specific
+ * method signatures.
*
- * This method uses reflection to call the appropriate {@code setPropertyJson} method
- * on the {@code Element} class, which has a different signature for its JSON
- * parameter in library versions before and after Vaadin 25.
+ * This method uses reflection to call the appropriate {@code setPropertyJson} method on the
+ * {@code Element} class, which has a different signature for its JSON parameter in library
+ * versions before and after Vaadin 25.
*
* @param element the {@code Element} on which to set the property
- * @param name the name of the property to set
- * @param json the {@code JsonValue} to be set as the property's value
+ * @param name the name of the property to set
+ * @param json the {@code JsonValue} to be set as the property's value
*/
public static void setPropertyJson(Element element, String name, JsonValue json) {
invoke(Element_setPropertyJson, element, name, json);
@@ -153,8 +151,8 @@ private static Method lookup_executeJs() {
* @return a pending result that can be used to get a value returned from the expression
* @see Element#executeJs(String, Serializable...)
*/
- public static ElementalPendingJavaScriptResult executeJs(Element element, String expression,
- Serializable... parameters) {
+ public static ElementalPendingJavaScriptResult executeJs(
+ Element element, String expression, Serializable... parameters) {
PendingJavaScriptResult result =
(PendingJavaScriptResult) invoke(Element_executeJs, element, expression, parameters);
return helper.convertPendingJavaScriptResult(result);
@@ -172,32 +170,31 @@ public static JsonObject getEventData(DomEvent event) {
}
/**
- * Instruments a component class to ensure compatibility with Vaadin 25+ JSON handling changes
- * in {@link ClientCallable} methods.
+ * Instruments a component class to ensure compatibility with Vaadin 25+ JSON handling changes in
+ * {@link ClientCallable} methods.
*
- *
- * This method creates a dynamically generated subclass of the given component class that
+ * This method creates a dynamically generated subclass of the given component class that
* automatically converts {@code JsonValue} return values from {@link ClientCallable} methods to
* the appropriate {@code JsonNode} type required by Vaadin 25+.
*
- *
- * Behavior by Vaadin version:
+ * Behavior by Vaadin version:
+ *
* When a bean is used, a {@link JsonObject} is returned.
+ *
+ * @param bean Java object to be converted
+ * @return the json representation of the Java object
+ */
+ public static JsonValue toJson(Object bean) {
+ if (bean == null) {
+ return Json.createNull();
+ }
+ if (bean instanceof Collection) {
+ return toJson((Collection>) bean);
+ }
+ if (bean.getClass().isArray()) {
+ return toJsonArray(bean);
}
- /**
- * Converts a Java bean, String, wrapper of primitive type or enum to a {@link JsonValue}.
- *
- * When a bean is used, a {@link JsonObject} is returned.
- *
- * @param bean Java object to be converted
- * @return the json representation of the Java object
- */
- public static JsonValue toJson(Object bean) {
- if (bean == null) {
- return Json.createNull();
- }
- if (bean instanceof Collection) {
- return toJson((Collection>) bean);
- }
- if (bean.getClass().isArray()) {
- return toJsonArray(bean);
- }
+ Optionalnull
- * @param errorHandler
- * a handler for an error message in case the execution failed,
- * or null to ignore errors
- */
- void then(SerializableConsumernull
- */
- default void then(SerializableConsumernull
- * @param resultHandler
- * a handler for the return value from a successful execution,
- * not null
- * @param errorHandler
- * a handler for an error message in case the execution failed,
- * or null to ignore errors
- */
- default null
+ * @param errorHandler a handler for an error message in case the execution failed, or null
+ * to ignore errors
+ */
+ void then(
+ SerializableConsumernull
+ */
+ default void then(SerializableConsumernull
+ * @param resultHandler a handler for the return value from a successful execution, not null
+ *
+ * @param errorHandler a handler for an error message in case the execution failed, or null
+ * to ignore errors
+ */
+ default null
- * @param resultHandler
- * a handler for the return value from a successful execution,
- * not null
- */
- default null
- *
- * @return a completable future that will be completed based on the
- * execution results, not null
- */
- null
- */
- default CompletableFuturenull
+ * @param resultHandler a handler for the return value from a successful execution, not null
+ *
+ */
+ default null
+ * @return a completable future that will be completed based on the execution results, not
+ * null
+ */
+
+ * null
+ */
+ default CompletableFuture
- *
*
* boolean
- * int
- * double (NaN and infinity not
- * supported)
- * boolean
+ * int
+ * double (NaN and infinity not supported)
+ * null is also supported.
- *
- * @param value
- * the value to encode
- * @return the value encoded as JSON
- */
- public static JsonValue encodeWithoutTypeInfo(Object value) {
- if (value == null) {
- return Json.createNull();
- }
-
- assert canEncodeWithoutTypeInfo(value.getClass());
+ /**
+ * Helper for checking whether the type is supported by {@link #encodeWithoutTypeInfo(Object)}.
+ * Supported value types are {@link String}, {@link Integer}, {@link Double}, {@link Boolean},
+ * {@link JsonValue}.
+ *
+ * @param type the type to check
+ * @return whether the type can be encoded
+ */
+ public static boolean canEncodeWithoutTypeInfo(Class> type) {
+ assert type != null;
+ return String.class.equals(type)
+ || Integer.class.equals(type)
+ || Double.class.equals(type)
+ || Boolean.class.equals(type)
+ || JsonValue.class.isAssignableFrom(type);
+ }
- Class> type = value.getClass();
- if (String.class.equals(value.getClass())) {
- return Json.create((String) value);
- } else if (Integer.class.equals(type) || Double.class.equals(type)) {
- return Json.create(((Number) value).doubleValue());
- } else if (Boolean.class.equals(type)) {
- return Json.create(((Boolean) value).booleanValue());
- } else if (JsonValue.class.isAssignableFrom(type)) {
- return (JsonValue) value;
- }
- assert !canEncodeWithoutTypeInfo(type);
- throw new IllegalArgumentException(
- "Can't encode " + value.getClass() + " to json");
+ /**
+ * Helper for encoding any "primitive" value that is directly supported in JSON. Supported values
+ * types are {@link String}, {@link Number}, {@link Boolean}, {@link JsonValue}. null
+ * is also supported.
+ *
+ * @param value the value to encode
+ * @return the value encoded as JSON
+ */
+ public static JsonValue encodeWithoutTypeInfo(Object value) {
+ if (value == null) {
+ return Json.createNull();
}
+ assert canEncodeWithoutTypeInfo(value.getClass());
+
+ Class> type = value.getClass();
+ if (String.class.equals(value.getClass())) {
+ return Json.create((String) value);
+ } else if (Integer.class.equals(type) || Double.class.equals(type)) {
+ return Json.create(((Number) value).doubleValue());
+ } else if (Boolean.class.equals(type)) {
+ return Json.create(((Boolean) value).booleanValue());
+ } else if (JsonValue.class.isAssignableFrom(type)) {
+ return (JsonValue) value;
+ }
+ assert !canEncodeWithoutTypeInfo(type);
+ throw new IllegalArgumentException("Can't encode " + value.getClass() + " to json");
+ }
}
diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigration.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigration.java
index a70b61b..a63ac25 100644
--- a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigration.java
+++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigration.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -33,44 +33,43 @@
import lombok.experimental.UtilityClass;
/**
- * Provides a compatibility layer for JSON handling to abstract away breaking changes
- * introduced in Vaadin version 25.
- *
- *
*
* @param null
+ */
+ public static JsonArray toJson(Collection> beans) {
+ JsonArray array = Json.createArray();
+ if (beans == null) {
+ return array;
+ }
- try {
- JsonObject json = Json.createObject();
- Class> type = bean.getClass();
-
- if (type.isRecord()) {
- for (RecordComponent rc : type.getRecordComponents()) {
- json.put(rc.getName(),
- toJson(rc.getAccessor().invoke(bean)));
- }
- } else {
- BeanInfo info = Introspector.getBeanInfo(type);
- for (PropertyDescriptor pd : info.getPropertyDescriptors()) {
- if ("class".equals(pd.getName())) {
- continue;
- }
- Method reader = pd.getReadMethod();
- if (reader != null) {
- json.put(pd.getName(), toJson(reader.invoke(bean)));
- }
- }
- }
-
- return json;
- } catch (Exception e) {
- throw new IllegalArgumentException(
- "Could not serialize object of type " + bean.getClass()
- + " to JsonValue",
- e);
- }
+ beans.stream()
+ .map(JsonSerializer::toJson)
+ .forEachOrdered(json -> array.set(array.length(), json));
+ return array;
+ }
+
+ private static JsonArray toJsonArray(Object javaArray) {
+ int length = Array.getLength(javaArray);
+ JsonArray array = Json.createArray();
+ for (int i = 0; i < length; i++) {
+ array.set(i, toJson(Array.get(javaArray, i)));
}
+ return array;
+ }
- /**
- * Converts a collection of object into a {@link JsonArray}, converting each
- * item of the collection individually.
- *
- * @param beans
- * the collection of objects to be converted
- * @return the json representation of the objects in the collectios. An
- * empty array is returned if the input collections is
- * null
- */
- public static JsonArray toJson(Collection> beans) {
- JsonArray array = Json.createArray();
- if (beans == null) {
- return array;
- }
+ private static Optionalnull if the input json is null
+ */
+ public static null if the input json is null
- */
- public static null
- */
- public static null
+ */
+ public static