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 @@ - https://github.com/FlowingCode/AddonStarter24 - scm:git:git://github.com/FlowingCode/AddonStarter24.git - scm:git:ssh://git@github.com:/FlowingCode/AddonStarter24.git + https://github.com/FlowingCode/JsonMigrationHelper + scm:git:git://github.com/FlowingCode/JsonMigrationHelper.git + scm:git:ssh://git@github.com:/FlowingCode/JsonMigrationHelper.git master From 242a8700a2bef23ed60cf7afb220231777682d72 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 3 Dec 2025 12:09:55 -0300 Subject: [PATCH 3/8] chore: correct add-on name in issue templates --- .github/ISSUE_TEMPLATE/bug-report.yml | 2 +- .github/ISSUE_TEMPLATE/feature-request.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index f804cc1..de79d5f 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -1,5 +1,5 @@ name: Bug Report -description: Please report issues related to TEMPLATE_ADDON here. +description: Please report issues related to JsonMigrationHelper Add-On here. body: - type: textarea id: problem-description diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index 4d37c3b..b07085f 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -1,5 +1,5 @@ name: Feature Request -description: Please add feature suggestions related to TEMPLATE_ADDON here. +description: Please add feature suggestions related to JsonMigrationHelper Add-On here. body: - type: textarea id: feature-proposal From f4bde6a22d83a65143f7bf6a090d9cb8a14d0d7d Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 3 Dec 2025 12:52:11 -0300 Subject: [PATCH 4/8] docs(readme): remove building and running demo section --- README.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/README.md b/README.md index ba4f1c1..ac25127 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,6 @@ Add the following dependencies in your pom.xml file: Release versions are available from Maven Central repository. For SNAPSHOT versions see [here](https://maven.flowingcode.com/snapshots/). -## Building and running demo - -- git clone repository -- mvn clean install jetty:run - -To see the demo, navigate to http://localhost:8080/ - ## Release notes See [here](https://github.com/FlowingCode/JsonMigrationHelper/releases) From 2624372ae7b32769ea528745ba57016624afde71 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 3 Dec 2025 12:52:38 -0300 Subject: [PATCH 5/8] docs(readme): correct groupId in documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac25127..bdf0d26 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Add the following dependencies in your pom.xml file: ```xml - com.flowingcode.vaadin.addons + com.flowingcode.vaadin json-migration-helper X.Y.Z From 980d4ac38d2cb29da154cd16cd92dd79f8ababc8 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 3 Dec 2025 12:54:01 -0300 Subject: [PATCH 6/8] refactor: remove public constructor from JsonMigration class --- .../com/flowingcode/vaadin/jsonmigration/JsonMigration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigration.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigration.java index e63c8c0..a70b61b 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigration.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigration.java @@ -30,6 +30,7 @@ import java.io.Serializable; import java.lang.reflect.Method; import lombok.SneakyThrows; +import lombok.experimental.UtilityClass; /** * Provides a compatibility layer for JSON handling to abstract away breaking changes @@ -41,6 +42,7 @@ * * @author Javier Godoy */ +@UtilityClass public class JsonMigration { private static final JsonMigrationHelper helper = initializeHelper(); From ce4d8e45f5e69121bd6996d393df104d2834de27 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 3 Dec 2025 12:56:34 -0300 Subject: [PATCH 7/8] style: apply code formatter --- .../ClassInstrumentationJacksonHelper.java | 5 +- .../ClassInstrumentationUtil.java | 259 ++++---- .../jsonmigration/ElementalArrayNode.java | 2 - .../jsonmigration/ElementalBooleanNode.java | 8 - .../jsonmigration/ElementalNullNode.java | 2 - .../jsonmigration/ElementalNumberNode.java | 2 - .../jsonmigration/ElementalObjectNode.java | 4 +- .../ElementalPendingJavaScriptResult.java | 218 +++---- .../jsonmigration/ElementalStringNode.java | 3 +- .../InstrumentationViewInitializer.java | 20 +- .../jsonmigration/InstrumentedRoute.java | 1 - .../vaadin/jsonmigration/JsonCodec.java | 180 +++--- .../vaadin/jsonmigration/JsonMigration.java | 92 ++- .../jsonmigration/JsonMigrationHelper.java | 7 +- .../jsonmigration/JsonMigrationHelper25.java | 50 +- .../vaadin/jsonmigration/JsonSerializer.java | 588 +++++++++--------- .../jsonmigration/LegacyClientCallable.java | 12 +- .../LegacyJsonMigrationHelper.java | 12 +- .../UnsupportedJsonValueImpl.java | 3 +- .../jsonmigration/BaseClientCallable.java | 5 +- .../jsonmigration/ClientCallable_D__V.java | 15 +- .../jsonmigration/ClientCallable_I__V.java | 15 +- .../ClientCallable_JsonArray__V.java | 16 +- .../ClientCallable_JsonBoolean__V.java | 8 +- .../ClientCallable_JsonNull__V.java | 16 +- .../ClientCallable_JsonNumber__V.java | 16 +- .../ClientCallable_JsonObject__V.java | 16 +- .../ClientCallable_JsonString__V.java | 16 +- .../ClientCallable_JsonValue__V.java | 16 +- .../ClientCallable_String__V.java | 15 +- .../jsonmigration/ClientCallable_Z__V.java | 15 +- .../jsonmigration/ClientCallable__D.java | 17 +- .../jsonmigration/ClientCallable__I.java | 17 +- .../ClientCallable__Integer.java | 17 +- .../ClientCallable__JsonArray.java | 18 +- .../ClientCallable__JsonBoolean.java | 18 +- .../ClientCallable__JsonNull.java | 18 +- .../ClientCallable__JsonNumber.java | 18 +- .../ClientCallable__JsonObject.java | 18 +- .../ClientCallable__JsonString.java | 18 +- .../ClientCallable__JsonValue.java | 18 +- .../jsonmigration/ClientCallable__V.java | 15 +- .../jsonmigration/ClientCallable__Z.java | 17 +- .../jsonmigration/ClientCallablesTest.java | 100 +-- .../jsonmigration/ClientCallablesTest24.java | 13 +- .../jsonmigration/ClientCallablesTest25.java | 12 +- ...ExtendsLegacyClientCallablePrivate__V.java | 8 +- .../LegacyClientCallablePrivate_D__V.java | 12 +- .../LegacyClientCallablePrivate_I__V.java | 12 +- ...acyClientCallablePrivate_JsonArray__V.java | 12 +- ...yClientCallablePrivate_JsonBoolean__V.java | 12 +- ...gacyClientCallablePrivate_JsonNull__V.java | 12 +- ...cyClientCallablePrivate_JsonNumber__V.java | 12 +- ...cyClientCallablePrivate_JsonObject__V.java | 12 +- ...cyClientCallablePrivate_JsonString__V.java | 12 +- ...acyClientCallablePrivate_JsonValue__V.java | 12 +- ...LegacyClientCallablePrivate_String__V.java | 12 +- .../LegacyClientCallablePrivate_Z__V.java | 12 +- .../LegacyClientCallablePrivate__D.java | 14 +- .../LegacyClientCallablePrivate__I.java | 14 +- .../LegacyClientCallablePrivate__Integer.java | 14 +- ...egacyClientCallablePrivate__JsonArray.java | 14 +- ...acyClientCallablePrivate__JsonBoolean.java | 14 +- ...LegacyClientCallablePrivate__JsonNull.java | 14 +- ...gacyClientCallablePrivate__JsonNumber.java | 14 +- ...gacyClientCallablePrivate__JsonObject.java | 14 +- ...gacyClientCallablePrivate__JsonString.java | 14 +- ...egacyClientCallablePrivate__JsonValue.java | 14 +- .../LegacyClientCallablePrivate__V.java | 12 +- .../LegacyClientCallablePrivate__Z.java | 14 +- .../LegacyClientCallable_D__V.java | 12 +- .../LegacyClientCallable_I__V.java | 12 +- .../LegacyClientCallable_JsonArray__V.java | 12 +- .../LegacyClientCallable_JsonBoolean__V.java | 12 +- .../LegacyClientCallable_JsonNull__V.java | 12 +- .../LegacyClientCallable_JsonNumber__V.java | 12 +- .../LegacyClientCallable_JsonObject__V.java | 12 +- .../LegacyClientCallable_JsonString__V.java | 12 +- .../LegacyClientCallable_JsonValue__V.java | 12 +- .../LegacyClientCallable_String__V.java | 12 +- .../LegacyClientCallable_Z__V.java | 12 +- .../LegacyClientCallable__D.java | 14 +- .../LegacyClientCallable__I.java | 14 +- .../LegacyClientCallable__Integer.java | 14 +- .../LegacyClientCallable__JsonArray.java | 14 +- .../LegacyClientCallable__JsonBoolean.java | 14 +- .../LegacyClientCallable__JsonNull.java | 14 +- .../LegacyClientCallable__JsonNumber.java | 14 +- .../LegacyClientCallable__JsonObject.java | 14 +- .../LegacyClientCallable__JsonString.java | 14 +- .../LegacyClientCallable__JsonValue.java | 14 +- .../LegacyClientCallable__V.java | 12 +- .../LegacyClientCallable__Z.java | 14 +- .../LegacyClientCallablesPrivateTest.java | 182 ++++-- .../LegacyClientCallablesPrivateTest24.java | 6 +- .../LegacyClientCallablesPrivateTest25.java | 5 +- .../LegacyClientCallablesTest.java | 133 ++-- .../LegacyClientCallablesTest24.java | 6 +- .../LegacyClientCallablesTest25.java | 5 +- 99 files changed, 1424 insertions(+), 1488 deletions(-) diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationJacksonHelper.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationJacksonHelper.java index 77e0a67..6cb90c4 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationJacksonHelper.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationJacksonHelper.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. @@ -51,5 +51,4 @@ public static String getConvertedTypeDescriptor(Class type) { } return Type.getDescriptor(type); } - } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationUtil.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationUtil.java index 891e92b..ce6eb38 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationUtil.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ClassInstrumentationUtil.java @@ -48,12 +48,10 @@ /** * Utility class for instrumenting classes at runtime. * - *

- * 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: + * *

* - * @param the type of the parent class + * @param the type of the parent class * @param parent the parent class to extend * @return a new instance of the instrumented class extending {@code parent} * @throws IllegalArgumentException if the parent class is final, an interface, a primitive type, - * an array type, or does not have an accessible no-argument constructor + * an array type, or does not have an accessible no-argument constructor * @throws RuntimeException if the instrumentation or instantiation fails */ public Class instrumentClass(Class parent) { @@ -176,57 +171,68 @@ private boolean hasLegacyVaadin() { } private static Stream getDeclaredCallables(Class clazz) { - return Stream.of(clazz.getDeclaredMethods()).filter(method -> { - int modifiers = method.getModifiers(); - if (!Modifier.isStatic(modifiers)) { - boolean isCallable = method.isAnnotationPresent(ClientCallable.class); - boolean isLegacyCallable = method.isAnnotationPresent(LegacyClientCallable.class); - return isCallable || isLegacyCallable; - } - return false; - }); + return Stream.of(clazz.getDeclaredMethods()) + .filter( + method -> { + int modifiers = method.getModifiers(); + if (!Modifier.isStatic(modifiers)) { + boolean isCallable = method.isAnnotationPresent(ClientCallable.class); + boolean isLegacyCallable = method.isAnnotationPresent(LegacyClientCallable.class); + return isCallable || isLegacyCallable; + } + return false; + }); } private static Stream getAllCallables(Class baseClass) { Map map = new HashMap<>(); for (Class clazz = baseClass; clazz != Component.class; clazz = clazz.getSuperclass()) { - getDeclaredCallables(clazz).forEach(method -> { - Method existing = map.get(method.getName()); - if (existing == null) { - map.put(method.getName(), method); - } else if (!Arrays.equals(existing.getParameterTypes(), method.getParameterTypes())) { - String msg = String.format("There may be only one handler method with the given name. " - + "Class '%s' (considering its superclasses) " - + "contains several handler methods with the same name: '%s'", - baseClass.getName(), method.getName()); - throw new IllegalStateException(msg); - } - }); + getDeclaredCallables(clazz) + .forEach( + method -> { + Method existing = map.get(method.getName()); + if (existing == null) { + map.put(method.getName(), method); + } else if (!Arrays.equals( + existing.getParameterTypes(), method.getParameterTypes())) { + String msg = + String.format( + "There may be only one handler method with the given name. " + + "Class '%s' (considering its superclasses) " + + "contains several handler methods with the same name: '%s'", + baseClass.getName(), method.getName()); + throw new IllegalStateException(msg); + } + }); } return map.values().stream(); } private List getInstrumentableMethods(Class parent) { - return getAllCallables(parent).filter(method -> { - boolean isCallable = method.isAnnotationPresent(ClientCallable.class); - boolean isLegacyCallable = method.isAnnotationPresent(LegacyClientCallable.class); - boolean hasJsonValueReturn = JsonValue.class.isAssignableFrom(method.getReturnType()); - boolean hasJsonValueParams = hasJsonValueParameters(method); - - if (isCallable && hasJsonValueParams) { - throw new IllegalArgumentException(String.format( - "Instrumented method '%s' in class '%s' has JsonValue arguments and must be annotated with @%s instead of @ClientCallable", - method.getName(), method.getDeclaringClass(), - LegacyClientCallable.class.getSimpleName())); - } - - if (hasLegacyVaadin()) { - return isLegacyCallable; - } else { - return (isCallable && hasJsonValueReturn) || isLegacyCallable; - } - - }).collect(Collectors.toList()); + return getAllCallables(parent) + .filter( + method -> { + boolean isCallable = method.isAnnotationPresent(ClientCallable.class); + boolean isLegacyCallable = method.isAnnotationPresent(LegacyClientCallable.class); + boolean hasJsonValueReturn = JsonValue.class.isAssignableFrom(method.getReturnType()); + boolean hasJsonValueParams = hasJsonValueParameters(method); + + if (isCallable && hasJsonValueParams) { + throw new IllegalArgumentException( + String.format( + "Instrumented method '%s' in class '%s' has JsonValue arguments and must be annotated with @%s instead of @ClientCallable", + method.getName(), + method.getDeclaringClass(), + LegacyClientCallable.class.getSimpleName())); + } + + if (hasLegacyVaadin()) { + return isLegacyCallable; + } else { + return (isCallable && hasJsonValueReturn) || isLegacyCallable; + } + }) + .collect(Collectors.toList()); } private static boolean hasJsonValueParameters(Method method) { @@ -238,9 +244,10 @@ private static boolean hasJsonValueParameters(Method method) { return false; } - private Class createInstrumentedClass(Class parent, - String className) throws Exception { - InstrumentedClassLoader classLoader = getOrCreateInstrumentedClassLoader(parent.getClassLoader()); + private Class createInstrumentedClass( + Class parent, String className) throws Exception { + InstrumentedClassLoader classLoader = + getOrCreateInstrumentedClassLoader(parent.getClassLoader()); return classLoader.defineInstrumentedClass(className, parent).asSubclass(parent); } @@ -259,10 +266,12 @@ public InstrumentedClassLoader(ClassLoader parent) { } public Class defineInstrumentedClass(String className, Class parent) { - return instrumentedClassCache.computeIfAbsent(parent, p -> { - byte[] bytecode = generateBytecode(className, p); - return defineClass(className, bytecode, 0, bytecode.length); - }); + return instrumentedClassCache.computeIfAbsent( + parent, + p -> { + byte[] bytecode = generateBytecode(className, p); + return defineClass(className, bytecode, 0, bytecode.length); + }); } private byte[] generateBytecode(String className, Class parent) { @@ -271,8 +280,13 @@ private byte[] generateBytecode(String className, Class parent) { ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS); - cw.visit(Opcodes.V1_8, Opcodes.ACC_PUBLIC | Opcodes.ACC_FINAL, - internalClassName, null, internalParentName, null); + cw.visit( + Opcodes.V1_8, + Opcodes.ACC_PUBLIC | Opcodes.ACC_FINAL, + internalClassName, + null, + internalParentName, + null); generateConstructor(cw, internalParentName); generateClientCallableOverrides(cw, parent, internalClassName, internalParentName); @@ -291,16 +305,19 @@ private void generateConstructor(ClassWriter cw, String internalParentName) { mv.visitEnd(); } - private void generateClientCallableOverrides(ClassWriter cw, Class parent, - String internalClassName, String internalParentName) { + private void generateClientCallableOverrides( + ClassWriter cw, Class parent, String internalClassName, String internalParentName) { List privateMethodNames = new ArrayList<>(); for (Method method : getInstrumentableMethods(parent)) { if (Modifier.isPrivate(method.getModifiers())) { privateMethodNames.add(method.getName()); createLookupHelper(cw, method); - cw.visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC | Opcodes.ACC_FINAL, + cw.visitField( + Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC | Opcodes.ACC_FINAL, method.getName(), - Type.getDescriptor(MethodHandle.class), null, null); + Type.getDescriptor(MethodHandle.class), + null, + null); } generateMethodOverride(cw, method, internalClassName, internalParentName); } @@ -309,14 +326,14 @@ private void generateClientCallableOverrides(ClassWriter cw, Class parent, MethodVisitor mv = cw.visitMethod(Opcodes.ACC_STATIC, "", "()V", null, null); mv.visitCode(); for (String name : privateMethodNames) { - mv.visitMethodInsn(Opcodes.INVOKESTATIC, + mv.visitMethodInsn( + Opcodes.INVOKESTATIC, internalClassName, - "lookup_"+name, - "()"+Type.getDescriptor(MethodHandle.class), + "lookup_" + name, + "()" + Type.getDescriptor(MethodHandle.class), false); - mv.visitFieldInsn(Opcodes.PUTSTATIC, - internalClassName, name, - "Ljava/lang/invoke/MethodHandle;"); + mv.visitFieldInsn( + Opcodes.PUTSTATIC, internalClassName, name, "Ljava/lang/invoke/MethodHandle;"); } mv.visitInsn(Opcodes.RETURN); mv.visitMaxs(0, 0); @@ -325,11 +342,17 @@ private void generateClientCallableOverrides(ClassWriter cw, Class parent, } private void createLookupHelper(ClassWriter cw, Method method) { - MethodVisitor mv = cw.visitMethod(Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC, - "lookup_" + method.getName(), "()" + Type.getDescriptor(MethodHandle.class), null, null); + MethodVisitor mv = + cw.visitMethod( + Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC, + "lookup_" + method.getName(), + "()" + Type.getDescriptor(MethodHandle.class), + null, + null); // Invoke static MethodHandles.lookup() - mv.visitMethodInsn(Opcodes.INVOKESTATIC, + mv.visitMethodInsn( + Opcodes.INVOKESTATIC, "java/lang/invoke/MethodHandles", "lookup", "()Ljava/lang/invoke/MethodHandles$Lookup;", @@ -355,7 +378,8 @@ private void createLookupHelper(ClassWriter cw, Method method) { } // Invoke getDeclaredMethod - mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, + mv.visitMethodInsn( + Opcodes.INVOKEVIRTUAL, "java/lang/Class", "getDeclaredMethod", "(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;", @@ -364,14 +388,12 @@ private void createLookupHelper(ClassWriter cw, Method method) { // Invoke method.setAccessible(true) mv.visitInsn(Opcodes.DUP); mv.visitInsn(Opcodes.ICONST_1); - mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, - "java/lang/reflect/Method", - "setAccessible", - "(Z)V", - false); + mv.visitMethodInsn( + Opcodes.INVOKEVIRTUAL, "java/lang/reflect/Method", "setAccessible", "(Z)V", false); // Invoke Lookup.unresolve(method) - mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, + mv.visitMethodInsn( + Opcodes.INVOKEVIRTUAL, "java/lang/invoke/MethodHandles$Lookup", "unreflect", "(Ljava/lang/reflect/Method;)Ljava/lang/invoke/MethodHandle;", @@ -384,18 +406,27 @@ private void createLookupHelper(ClassWriter cw, Method method) { mv.visitEnd(); } - private void generateMethodOverride(ClassWriter cw, Method method, String internalClassName, String internalParentName) { + private void generateMethodOverride( + ClassWriter cw, Method method, String internalClassName, String internalParentName) { logger.info("Override {}", method); - boolean hasJsonValueReturn = !hasLegacyVaadin() && JsonValue.class.isAssignableFrom(method.getReturnType()); + boolean hasJsonValueReturn = + !hasLegacyVaadin() && JsonValue.class.isAssignableFrom(method.getReturnType()); boolean hasJsonValueParams = !hasLegacyVaadin() && hasJsonValueParameters(method); String overrideDescriptor = getMethodDescriptor(method, hasJsonValueParams); String superDescriptor = getMethodDescriptor(method, false); - int access = method.getModifiers() & (Opcodes.ACC_PUBLIC | Opcodes.ACC_PROTECTED | Opcodes.ACC_PRIVATE); + int access = + method.getModifiers() + & (Opcodes.ACC_PUBLIC | Opcodes.ACC_PROTECTED | Opcodes.ACC_PRIVATE); - MethodVisitor mv = cw.visitMethod(access, method.getName(), overrideDescriptor, null, - getExceptionInternalNames(method.getExceptionTypes())); + MethodVisitor mv = + cw.visitMethod( + access, + method.getName(), + overrideDescriptor, + null, + getExceptionInternalNames(method.getExceptionTypes())); mv.visitAnnotation(Type.getDescriptor(ClientCallable.class), true); mv.visitCode(); @@ -403,8 +434,10 @@ private void generateMethodOverride(ClassWriter cw, Method method, String intern boolean isPrivate = Modifier.isPrivate(method.getModifiers()); if (isPrivate) { // Load MethodHandle from static field - mv.visitFieldInsn(Opcodes.GETSTATIC, - internalClassName, method.getName(), + mv.visitFieldInsn( + Opcodes.GETSTATIC, + internalClassName, + method.getName(), "Ljava/lang/invoke/MethodHandle;"); } @@ -420,8 +453,12 @@ private void generateMethodOverride(ClassWriter cw, Method method, String intern mv.visitVarInsn(Opcodes.ALOAD, localVarIndex); // Call JsonMigration.convertToJsonValue(JsonNode) -> JsonValue - mv.visitMethodInsn(Opcodes.INVOKESTATIC, "com/flowingcode/vaadin/jsonmigration/JsonMigration", - "convertToJsonValue", "(Ljava/lang/Object;)Lelemental/json/JsonValue;", false); + mv.visitMethodInsn( + Opcodes.INVOKESTATIC, + "com/flowingcode/vaadin/jsonmigration/JsonMigration", + "convertToJsonValue", + "(Ljava/lang/Object;)Lelemental/json/JsonValue;", + false); // Cast to the original type if not JsonValue if (paramType != JsonValue.class) { @@ -437,20 +474,17 @@ private void generateMethodOverride(ClassWriter cw, Method method, String intern if (isPrivate) { // Call private method String descriptor = - "(" + Type.getDescriptor(method.getDeclaringClass()) - + superDescriptor.substring(1); - mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, + "(" + Type.getDescriptor(method.getDeclaringClass()) + superDescriptor.substring(1); + mv.visitMethodInsn( + Opcodes.INVOKEVIRTUAL, "java/lang/invoke/MethodHandle", "invokeExact", descriptor, false); } else { // Call super.methodName(params) with original descriptor - mv.visitMethodInsn(Opcodes.INVOKESPECIAL, - internalParentName, - method.getName(), - superDescriptor, - false); + mv.visitMethodInsn( + Opcodes.INVOKESPECIAL, internalParentName, method.getName(), superDescriptor, false); } if (hasJsonValueReturn) { @@ -461,8 +495,11 @@ private void generateMethodOverride(ClassWriter cw, Method method, String intern mv.visitVarInsn(Opcodes.ALOAD, localVarIndex); // Call JsonMigration.convertToClientCallableResult(aux) - mv.visitMethodInsn(Opcodes.INVOKESTATIC, "com/flowingcode/vaadin/jsonmigration/JsonMigration", - "convertToClientCallableResult", "(Lelemental/json/JsonValue;)Lelemental/json/JsonValue;", + mv.visitMethodInsn( + Opcodes.INVOKESTATIC, + "com/flowingcode/vaadin/jsonmigration/JsonMigration", + "convertToClientCallableResult", + "(Lelemental/json/JsonValue;)Lelemental/json/JsonValue;", false); } @@ -561,10 +598,12 @@ private String getMethodDescriptor(Method method, boolean convertJsonValueParams @SneakyThrows private String getConvertedTypeDescriptor(Class type) { if (getConvertedTypeDescriptor == null) { - Class helper = Class.forName("com.flowingcode.vaadin.jsonmigration.ClassInstrumentationJacksonHelper"); + Class helper = + Class.forName("com.flowingcode.vaadin.jsonmigration.ClassInstrumentationJacksonHelper"); MethodHandles.Lookup lookup = MethodHandles.lookup(); MethodType methodType = MethodType.methodType(String.class, Class.class); - getConvertedTypeDescriptor = lookup.findStatic(helper, "getConvertedTypeDescriptor", methodType); + getConvertedTypeDescriptor = + lookup.findStatic(helper, "getConvertedTypeDescriptor", methodType); } return (String) getConvertedTypeDescriptor.invokeExact(type); } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalArrayNode.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalArrayNode.java index 267c84f..cd05efd 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalArrayNode.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalArrayNode.java @@ -54,6 +54,4 @@ private static List children(JsonArray a) { public JsonType getType() { return JsonType.ARRAY; } - } - diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalBooleanNode.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalBooleanNode.java index 0eca205..ab0ed4c 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalBooleanNode.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalBooleanNode.java @@ -33,12 +33,4 @@ public ElementalBooleanNode(boolean value) { public JsonType getType() { return JsonType.BOOLEAN; } - } - - - - - - - diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalNullNode.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalNullNode.java index a166498..67c9d69 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalNullNode.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalNullNode.java @@ -38,6 +38,4 @@ public String toJson() { public JsonType getType() { return JsonType.NULL; } - } - diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalNumberNode.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalNumberNode.java index 5d96826..fa7bcb7 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalNumberNode.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalNumberNode.java @@ -43,6 +43,4 @@ public String toJson() { public JsonType getType() { return JsonType.NUMBER; } - } - diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalObjectNode.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalObjectNode.java index 9c48f8d..eba4cac 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalObjectNode.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalObjectNode.java @@ -20,6 +20,7 @@ package com.flowingcode.vaadin.jsonmigration; import static com.flowingcode.vaadin.jsonmigration.JsonMigrationHelper25.convertToJsonNode; + import elemental.json.JsonObject; import elemental.json.JsonType; import java.util.Collections; @@ -56,7 +57,4 @@ private static Map children(JsonObject o) { public JsonType getType() { return JsonType.OBJECT; } - } - - diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalPendingJavaScriptResult.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalPendingJavaScriptResult.java index 93ff64e..648f998 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalPendingJavaScriptResult.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalPendingJavaScriptResult.java @@ -18,6 +18,7 @@ * #L% */ package com.flowingcode.vaadin.jsonmigration; + /* * Copyright 2000-2025 Vaadin Ltd. * @@ -51,132 +52,107 @@ */ public interface ElementalPendingJavaScriptResult extends Serializable { - /** - * Adds an untyped handler that will be run for a successful execution and a - * handler that will be run for a failed execution. One of the handlers will - * be invoked asynchronously when the result of the execution is sent back - * to the server. It is not possible to synchronously wait for the result of - * the execution while holding the session lock since the request handling - * thread that makes the result available will also need to lock the - * session. - *

- * 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 null - * @param errorHandler - * a handler for an error message in case the execution failed, - * or null to ignore errors - */ - void then(SerializableConsumer resultHandler, - SerializableConsumer errorHandler); - - /** - * Adds an untyped handler that will be run for a successful execution. The - * handler will be invoked asynchronously if the execution was successful. - * In case of a failure, no handler will be run. - *

- * 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 null - */ - default void then(SerializableConsumer resultHandler) { - then(resultHandler, null); - } - - /** - * Adds a typed handler that will be run for a successful execution and a - * handler that will be run for a failed execution. One of the handlers will - * be invoked asynchronously when the result of the execution is sent back - * to the server. - *

- * 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 - * null - * @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 void then(Class targetType, - SerializableConsumer resultHandler, - SerializableConsumer errorHandler) { - if (targetType == null) { - throw new IllegalArgumentException("Target type cannot be null"); - } - if (resultHandler == null) { - throw new IllegalArgumentException("Result handler cannot be null"); - } + /** + * Adds an untyped handler that will be run for a successful execution and a handler that will be + * run for a failed execution. One of the handlers will be invoked asynchronously when the result + * of the execution is sent back to the server. It is not possible to synchronously wait for the + * result of the execution while holding the session lock since the request handling thread that + * makes the result available will also need to lock the session. + * + *

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 null + * @param errorHandler a handler for an error message in case the execution failed, or null + * to ignore errors + */ + void then( + SerializableConsumer resultHandler, SerializableConsumer errorHandler); - SerializableConsumer convertingResultHandler = value -> resultHandler - .accept(JsonCodec.decodeAs(value, targetType)); + /** + * Adds an untyped handler that will be run for a successful execution. The handler will be + * invoked asynchronously if the execution was successful. In case of a failure, no handler will + * be run. + * + *

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 null + */ + default void then(SerializableConsumer resultHandler) { + then(resultHandler, null); + } - then(convertingResultHandler, errorHandler); + /** + * Adds a typed handler that will be run for a successful execution and a handler that will be run + * for a failed execution. One of the handlers will be invoked asynchronously when the result of + * the execution is sent back to the server. + * + *

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 null + * @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 void then( + Class targetType, + SerializableConsumer resultHandler, + SerializableConsumer errorHandler) { + if (targetType == null) { + throw new IllegalArgumentException("Target type cannot be null"); } - - /** - * Adds a typed handler that will be run for a successful execution. The - * handler will be invoked asynchronously if the execution was successful. - * In case of a failure, no handler will be run. - *

- * 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 - * null - * @param resultHandler - * a handler for the return value from a successful execution, - * not null - */ - default void then(Class targetType, - SerializableConsumer resultHandler) { - then(targetType, resultHandler, null); + if (resultHandler == null) { + throw new IllegalArgumentException("Result handler cannot be null"); } - /** - * Creates a typed completable future that will be completed with the result - * of the execution. It will be completed asynchronously when the result of - * the execution is sent back to the server. It is not possible to - * synchronously wait for the result of the execution while holding the - * session lock since the request handling thread that makes the result - * available will also need to lock the session. - *

- * 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 - * null - * - * @return a completable future that will be completed based on the - * execution results, not null - */ - CompletableFuture toCompletableFuture(Class targetType); + SerializableConsumer convertingResultHandler = + value -> resultHandler.accept(JsonCodec.decodeAs(value, targetType)); - /** - * Creates an untyped completable future that will be completed with the - * result of the execution. It will be completed asynchronously when the - * result of the execution is sent back to the server. - *

- * 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 null - */ - default CompletableFuture toCompletableFuture() { - return toCompletableFuture(JsonValue.class); - } + then(convertingResultHandler, errorHandler); + } + + /** + * Adds a typed handler that will be run for a successful execution. The handler will be invoked + * asynchronously if the execution was successful. In case of a failure, no handler will be run. + * + *

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 null + * @param resultHandler a handler for the return value from a successful execution, not null + * + */ + default void then(Class targetType, SerializableConsumer resultHandler) { + then(targetType, resultHandler, null); + } + + /** + * Creates a typed completable future that will be completed with the result of the execution. It + * will be completed asynchronously when the result of the execution is sent back to the server. + * It is not possible to synchronously wait for the result of the execution while holding the + * session lock since the request handling thread that makes the result available will also need + * to lock the session. + * + *

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 null + * @return a completable future that will be completed based on the execution results, not + * null + */ + CompletableFuture toCompletableFuture(Class targetType); + /** + * Creates an untyped completable future that will be completed with the result of the execution. + * It will be completed asynchronously when the result of the execution is sent back to the + * server. + * + *

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 + * null + */ + default CompletableFuture toCompletableFuture() { + return toCompletableFuture(JsonValue.class); + } } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalStringNode.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalStringNode.java index 7e80173..7c33b09 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalStringNode.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalStringNode.java @@ -33,5 +33,4 @@ public ElementalStringNode(String value) { public JsonType getType() { return JsonType.STRING; } - -} \ No newline at end of file +} diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/InstrumentationViewInitializer.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/InstrumentationViewInitializer.java index 281fd8f..dac1f1e 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/InstrumentationViewInitializer.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/InstrumentationViewInitializer.java @@ -25,8 +25,8 @@ /** * Abstract base class for Vaadin service initializers that register instrumented views. Subclasses - * should implement {@link #serviceInit(com.vaadin.flow.server.ServiceInitEvent)} and call - * {@link #registerInstrumentedRoute(Class)} to register views with instrumented routes. + * should implement {@link #serviceInit(com.vaadin.flow.server.ServiceInitEvent)} and call {@link + * #registerInstrumentedRoute(Class)} to register views with instrumented routes. * * @author Javier Godoy / Flowing Code */ @@ -35,20 +35,21 @@ public abstract class InstrumentationViewInitializer implements VaadinServiceIni /** * Registers an instrumented route for the given navigation target. The navigation target must be - * annotated with {@link InstrumentedRoute} to specify the route path. This method calls - * {@link JsonMigration#instrumentClass(Class)} to get the instrumented class and registers it as - * a Vaadin view with the route derived from the annotation. + * annotated with {@link InstrumentedRoute} to specify the route path. This method calls {@link + * JsonMigration#instrumentClass(Class)} to get the instrumented class and registers it as a + * Vaadin view with the route derived from the annotation. * * @param navigationTarget the component class to instrument and register, must be annotated with - * {@link InstrumentedRoute} - * @throws IllegalArgumentException if the navigationTarget is not annotated with - * {@link InstrumentedRoute} + * {@link InstrumentedRoute} + * @throws IllegalArgumentException if the navigationTarget is not annotated with {@link + * InstrumentedRoute} */ protected final void registerInstrumentedRoute(Class navigationTarget) { InstrumentedRoute annotation = navigationTarget.getAnnotation(InstrumentedRoute.class); if (annotation == null) { throw new IllegalArgumentException( - navigationTarget.getName() + " must be annotated with @" + navigationTarget.getName() + + " must be annotated with @" + InstrumentedRoute.class.getSimpleName()); } @@ -56,5 +57,4 @@ protected final void registerInstrumentedRoute(Class naviga navigationTarget = JsonMigration.instrumentClass(navigationTarget); RouteConfiguration.forApplicationScope().setRoute(route, navigationTarget); } - } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/InstrumentedRoute.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/InstrumentedRoute.java index 4e93475..2793c26 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/InstrumentedRoute.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/InstrumentedRoute.java @@ -42,5 +42,4 @@ * @return the route path */ String value(); - } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonCodec.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonCodec.java index 3e7dbec..ce184a5 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonCodec.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonCodec.java @@ -18,6 +18,7 @@ * #L% */ package com.flowingcode.vaadin.jsonmigration; + /* * Copyright 2000-2020 Vaadin Ltd. * @@ -36,120 +37,109 @@ import com.vaadin.flow.component.Component; import com.vaadin.flow.dom.Element; -import com.vaadin.flow.dom.Node; import com.vaadin.flow.internal.ReflectTools; -import com.vaadin.flow.internal.nodefeature.ReturnChannelRegistration; import elemental.json.Json; import elemental.json.JsonType; import elemental.json.JsonValue; /** * Utility for encoding objects to and from JSON. - *

- * Supported types are + * + *

Supported types are + * *

    - *
  • {@link String} - *
  • {@link Boolean} and boolean - *
  • {@link Integer} and int - *
  • {@link Double} and double (NaN and infinity not - * supported) - *
  • {@link JsonValue} and all its sub types - *
  • {@link Element} (encoded as a reference to the element) - *
  • {@link Component} (encoded as a reference to the root element) + *
  • {@link String} + *
  • {@link Boolean} and boolean + *
  • {@link Integer} and int + *
  • {@link Double} and double (NaN and infinity not supported) + *
  • {@link JsonValue} and all its sub types + *
  • {@link Element} (encoded as a reference to the element) + *
  • {@link Component} (encoded as a reference to the root element) *
* *

+ * * @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 - * the decoded type - * @param json - * the JSON value - * @param type - * the type to decode as - * @return the value decoded as the given type - * @throws IllegalArgumentException - * if the type was unsupported - */ - @SuppressWarnings("unchecked") - public static T decodeAs(JsonValue json, Class type) { - assert json != null; - if (json.getType() == JsonType.NULL && !type.isPrimitive()) { - return null; - } - Class convertedType = ReflectTools.convertPrimitiveType(type); - if (type == String.class) { - return type.cast(json.asString()); - } else if (convertedType == Boolean.class) { - return (T) convertedType.cast(Boolean.valueOf(json.asBoolean())); - } else if (convertedType == Double.class) { - return (T) convertedType.cast(Double.valueOf(json.asNumber())); - } else if (convertedType == Integer.class) { - return (T) convertedType - .cast(Integer.valueOf((int) json.asNumber())); - } else if (JsonValue.class.isAssignableFrom(type)) { - return type.cast(json); - } else { - throw new IllegalArgumentException( - "Unknown type " + type.getName()); - } - + /** + * 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 the decoded type + * @param json the JSON value + * @param type the type to decode as + * @return the value decoded as the given type + * @throws IllegalArgumentException if the type was unsupported + */ + @SuppressWarnings("unchecked") + public static T decodeAs(JsonValue json, Class type) { + assert json != null; + if (json.getType() == JsonType.NULL && !type.isPrimitive()) { + return null; } - - /** - * 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 convertedType = ReflectTools.convertPrimitiveType(type); + if (type == String.class) { + return type.cast(json.asString()); + } else if (convertedType == Boolean.class) { + return (T) convertedType.cast(Boolean.valueOf(json.asBoolean())); + } else if (convertedType == Double.class) { + return (T) convertedType.cast(Double.valueOf(json.asNumber())); + } else if (convertedType == Integer.class) { + return (T) convertedType.cast(Integer.valueOf((int) json.asNumber())); + } else if (JsonValue.class.isAssignableFrom(type)) { + return type.cast(json); + } else { + throw new IllegalArgumentException("Unknown type " + type.getName()); } + } - /** - * 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()); + /** + * 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. - *

- * 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 T convertToClientCallableResult(T object) { /** * Converts a given Java object into a {@code JsonValue}. * - *

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: + * *

    - *
  • Vaadin 25+: Returns an instrumented subclass that overrides all - * {@code @ClientCallable} methods returning {@code JsonValue} types. These overridden methods - * call the parent implementation and then convert the result through - * {@link #convertToClientCallableResult(JsonValue)} to ensure compatibility with the new - * Jackson-based JSON API.
  • - *
  • Vaadin 24 and earlier: Returns the original class unchanged, as no instrumentation - * is needed for the elemental.json API.
  • + *
  • Vaadin 25+: Returns an instrumented subclass that overrides all + * {@code @ClientCallable} methods returning {@code JsonValue} types. These overridden + * methods call the parent implementation and then convert the result through {@link + * #convertToClientCallableResult(JsonValue)} to ensure compatibility with the new + * Jackson-based JSON API. + *
  • Vaadin 24 and earlier: Returns the original class unchanged, as no instrumentation + * is needed for the elemental.json API. *
* * @param the type of the component class * @param clazz the component class to instrument * @return in Vaadin 25+, an instrumented subclass of {@code clazz}; in earlier versions, the - * original {@code clazz} + * original {@code clazz} * @throws IllegalArgumentException if the class does not meet the requirements for - * instrumentation + * instrumentation * @throws RuntimeException if the instrumentation fails * @see ClientCallable * @see InstrumentedRoute @@ -206,5 +203,4 @@ public static JsonObject getEventData(DomEvent event) { public static Class instrumentClass(Class clazz) { return helper.instrumentClass(clazz); } - } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper.java index 00dcea1..30bad6f 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper.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. @@ -22,9 +22,7 @@ import com.vaadin.flow.component.Component; import com.vaadin.flow.component.page.PendingJavaScriptResult; import elemental.json.JsonValue; - import java.lang.reflect.Method; -import com.vaadin.flow.dom.Element; interface JsonMigrationHelper { @@ -37,5 +35,4 @@ interface JsonMigrationHelper { ElementalPendingJavaScriptResult convertPendingJavaScriptResult(PendingJavaScriptResult result); Class instrumentClass(Class clazz); - } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper25.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper25.java index 300bd7c..bbe4b6e 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper25.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper25.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. @@ -19,8 +19,6 @@ */ package com.flowingcode.vaadin.jsonmigration; -import java.lang.reflect.Method; -import java.util.Arrays; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.page.PendingJavaScriptResult; import com.vaadin.flow.function.SerializableConsumer; @@ -29,6 +27,8 @@ import elemental.json.JsonObject; import elemental.json.JsonValue; import java.lang.reflect.Array; +import java.lang.reflect.Method; +import java.util.Arrays; import java.util.concurrent.CompletableFuture; import lombok.AllArgsConstructor; import lombok.NoArgsConstructor; @@ -61,7 +61,7 @@ public JsonValue convertToJsonValue(Object object) { throw new ClassCastException( object.getClass().getName() + " cannot be converted to elemental.json.JsonObject"); } - } + } @SuppressWarnings("unchecked") @Override @@ -122,7 +122,6 @@ public Object invoke(Method method, Object instance, Object... args) { return method.invoke(instance, convertedArgs); } - private static T[] convertArray(Object[] array, Class newType) { T[] convertedArray = null; if (newType.isAssignableFrom(BaseJsonNode.class)) { @@ -130,10 +129,11 @@ private static T[] convertArray(Object[] array, Class newType) if (array[i] instanceof JsonValue) { if (convertedArray == null) { @SuppressWarnings("unchecked") - T[] copy = (newType == Object.class) - ? (T[]) new Object[array.length] - : (T[]) Array.newInstance(newType, array.length); - if (i>0) { + T[] copy = + (newType == Object.class) + ? (T[]) new Object[array.length] + : (T[]) Array.newInstance(newType, array.length); + if (i > 0) { System.arraycopy(array, 0, copy, 0, i); } convertedArray = copy; @@ -214,7 +214,6 @@ static BaseJsonNode convertToJsonNode(JsonValue jsonValue) { } } - @Override public ElementalPendingJavaScriptResult convertPendingJavaScriptResult( PendingJavaScriptResult result) { @@ -229,8 +228,10 @@ private static final class PendingJavaScriptResultImpl @SuppressWarnings("rawtypes") private static SerializableConsumer wrap(SerializableConsumer resultHandler) { - return (SerializableConsumer) node -> resultHandler.accept(convertToJsonValue(node)); - }; + return (SerializableConsumer) + node -> resultHandler.accept(convertToJsonValue(node)); + } + ; private static T decodeAs(JsonNode node, Class type) { return JsonCodec.decodeAs(convertToJsonValue(node), type); @@ -238,19 +239,25 @@ private static T decodeAs(JsonNode node, Class type) { @Override @SuppressWarnings("unchecked") - public void then(SerializableConsumer resultHandler, - SerializableConsumer errorHandler) { + public void then( + SerializableConsumer resultHandler, SerializableConsumer errorHandler) { delegate.then(wrap(resultHandler), errorHandler); } @Override @SuppressWarnings("unchecked") - public void then(Class targetType, SerializableConsumer resultHandler, + public void then( + Class targetType, + SerializableConsumer resultHandler, SerializableConsumer errorHandler) { if (targetType != null && JsonValue.class.isAssignableFrom(targetType)) { - delegate.then(JsonNode.class, wrap(value->{ - resultHandler.accept(JsonCodec.decodeAs(value, targetType)); - }), errorHandler); + delegate.then( + JsonNode.class, + wrap( + value -> { + resultHandler.accept(JsonCodec.decodeAs(value, targetType)); + }), + errorHandler); } else { delegate.then(targetType, resultHandler, errorHandler); } @@ -259,13 +266,12 @@ public void then(Class targetType, SerializableConsumer resultHandler, @Override public CompletableFuture toCompletableFuture(Class targetType) { if (JsonValue.class.isAssignableFrom(targetType)) { - return delegate.toCompletableFuture(JsonNode.class) + return delegate + .toCompletableFuture(JsonNode.class) .thenApply(node -> decodeAs(node, targetType)); } else { return delegate.toCompletableFuture(targetType); } } - } - } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonSerializer.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonSerializer.java index fbfef15..13d4f8c 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonSerializer.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/JsonSerializer.java @@ -59,342 +59,312 @@ import java.util.Set; /** - * General-purpose serializer of Java objects to {@link JsonValue} and - * deserializer of JsonValue to Java objects. + * General-purpose serializer of Java objects to {@link JsonValue} and deserializer of JsonValue to + * Java objects. * * @since 1.0 */ public final class JsonSerializer { - private JsonSerializer() { + private JsonSerializer() {} + + /** + * 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); } - /** - * 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); - } + Optional simpleType = tryToConvertToSimpleType(bean); + if (simpleType.isPresent()) { + return simpleType.get(); + } - Optional simpleType = tryToConvertToSimpleType(bean); - if (simpleType.isPresent()) { - return simpleType.get(); - } + 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); + } + } + + /** + * 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; + } - 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 Optional tryToConvertToSimpleType(Object bean) { + if (bean instanceof String) { + return Optional.of(Json.create((String) bean)); + } + if (bean instanceof Number) { + return Optional.of(Json.create(((Number) bean).doubleValue())); + } + if (bean instanceof Boolean) { + return Optional.of(Json.create((Boolean) bean)); + } + if (bean instanceof Character) { + return Optional.of(Json.create(Character.toString((char) bean))); + } + if (bean instanceof Enum) { + return Optional.of(Json.create(((Enum) bean).name())); + } + if (bean instanceof JsonValue) { + return Optional.of((JsonValue) bean); + } + return Optional.empty(); + } + + /** + * Converts a JsonValue to the corresponding Java object. The Java object can be a Java bean, + * String, wrapper of primitive types or an enum. + * + * @param type the type of the Java object convert the json to + * @param json the json representation of the object + * @param the resulting object type + * @return the deserialized object, or null if the input json is null + */ + public static T toObject(Class type, JsonValue json) { + return toObject(type, null, json); + } + + @SuppressWarnings("unchecked") + private static T toObject(Class type, Type genericType, JsonValue json) { + if (json == null || json instanceof JsonNull) { + return null; + } - beans.stream().map(JsonSerializer::toJson) - .forEachOrdered(json -> array.set(array.length(), json)); - return array; + Optional simpleType = tryToConvertFromSimpleType(type, json); + if (simpleType.isPresent()) { + return (T) simpleType.get(); } - 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; + if (Collection.class.isAssignableFrom(type)) { + return toCollection(type, genericType, json); } - private static Optional tryToConvertToSimpleType(Object bean) { - if (bean instanceof String) { - return Optional.of(Json.create((String) bean)); - } - if (bean instanceof Number) { - return Optional.of(Json.create(((Number) bean).doubleValue())); - } - if (bean instanceof Boolean) { - return Optional.of(Json.create((Boolean) bean)); - } - if (bean instanceof Character) { - return Optional.of(Json.create(Character.toString((char) bean))); - } - if (bean instanceof Enum) { - return Optional.of(Json.create(((Enum) bean).name())); - } - if (bean instanceof JsonValue) { - return Optional.of((JsonValue) bean); - } - return Optional.empty(); - } - - /** - * Converts a JsonValue to the corresponding Java object. The Java object can be a Java bean, - * String, wrapper of primitive types or an enum. - * - * @param type the type of the Java object convert the json to - * @param json the json representation of the object - * @param the resulting object type - * - * @return the deserialized object, or null if the input json is null - */ - public static T toObject(Class type, JsonValue json) { - return toObject(type, null, json); - } - - @SuppressWarnings("unchecked") - private static T toObject(Class type, Type genericType, - JsonValue json) { - if (json == null || json instanceof JsonNull) { - return null; - } + if (type.isRecord()) { + return toRecord(type, json); + } - Optional simpleType = tryToConvertFromSimpleType(type, json); - if (simpleType.isPresent()) { - return (T) simpleType.get(); - } + T instance; + try { + instance = type.newInstance(); + } catch (Exception e) { + throw new IllegalArgumentException( + "Could not create an instance of type " + + type + + ". Make sure it contains a default public constructor and the class is accessible.", + e); + } - if (Collection.class.isAssignableFrom(type)) { - return toCollection(type, genericType, json); - } + try { - if (type.isRecord()) { - return toRecord(type, json); - } + JsonObject jsonObject = (JsonObject) json; + String[] keys = jsonObject.keys(); + if (keys == null) { + return instance; + } - T instance; - try { - instance = type.newInstance(); - } catch (Exception e) { - throw new IllegalArgumentException( - "Could not create an instance of type " + type - + ". Make sure it contains a default public constructor and the class is accessible.", - e); - } + BeanInfo info = Introspector.getBeanInfo(type); + Map writers = new HashMap<>(); - try { - - JsonObject jsonObject = (JsonObject) json; - String[] keys = jsonObject.keys(); - if (keys == null) { - return instance; - } - - BeanInfo info = Introspector.getBeanInfo(type); - Map writers = new HashMap<>(); - - for (PropertyDescriptor pd : info.getPropertyDescriptors()) { - Method writer = pd.getWriteMethod(); - if (writer != null) { - writers.put(pd.getName(), writer); - } - } - for (String key : keys) { - JsonValue jsonValue = jsonObject.get(key); - - Method method = writers.get(key); - if (method != null) { - Class parameterType = method.getParameterTypes()[0]; - Type genericParameterType = method - .getGenericParameterTypes()[0]; - Object value = toObject(parameterType, genericParameterType, - jsonValue); - method.invoke(instance, value); - } - } - - return instance; - } catch (Exception e) { - throw new IllegalArgumentException( - "Could not deserialize object of type " + type - + " from JsonValue", - e); + for (PropertyDescriptor pd : info.getPropertyDescriptors()) { + Method writer = pd.getWriteMethod(); + if (writer != null) { + writers.put(pd.getName(), writer); } - } + } + for (String key : keys) { + JsonValue jsonValue = jsonObject.get(key); - private static T toRecord(Class type, JsonValue json) { - try { - RecordComponent[] components = type.getRecordComponents(); - Class[] componentTypes = new Class[components.length]; - Object[] values = new Object[components.length]; - - for (int i = 0; i < components.length; i++) { - componentTypes[i] = components[i].getType(); - values[i] = toObject(componentTypes[i], - ((JsonObject) json).get(components[i].getName())); - } - - return type.getDeclaredConstructor(componentTypes) - .newInstance(values); - } catch (Exception e) { - throw new IllegalArgumentException( - "Could not deserialize record of type " + type - + " from JsonValue", - e); + Method method = writers.get(key); + if (method != null) { + Class parameterType = method.getParameterTypes()[0]; + Type genericParameterType = method.getGenericParameterTypes()[0]; + Object value = toObject(parameterType, genericParameterType, jsonValue); + method.invoke(instance, value); } - } + } - private static T toCollection(Class type, Type genericType, - JsonValue json) { - if (json.getType() != JsonType.ARRAY) { - return null; - } - if (!(genericType instanceof ParameterizedType)) { - throw new IllegalArgumentException( - "Could not infer the generic parameterized type of the collection of class: " - + type.getName() - + ". The type is no subclass of ParameterizedType: " - + genericType); - } - JsonArray array = (JsonArray) json; - Collection collection = tryToCreateCollection(type, array.length()); - if (array.length() > 0) { - ParameterizedType parameterizedType = (ParameterizedType) genericType; - Class parameterizedClass = (Class) parameterizedType - .getActualTypeArguments()[0]; - collection.addAll( - (List) toObjects(parameterizedClass, (JsonArray) json)); - } - return (T) collection; - } - - /** - * Converts a JsonArray into a collection of Java objects. The Java objects can be Java beans, - * Strings, wrappers of primitive types or enums. - * - * @param type the type of the elements in the array - * @param json the json representation of the objects - * @param the resulting objects types - * - * @return a modifiable list of converted objects. Returns an empty list if the input array is - * null - */ - public static List toObjects(Class type, JsonArray json) { - if (json == null) { - return new ArrayList<>(0); - } - List list = new ArrayList<>(json.length()); - for (int i = 0; i < json.length(); i++) { - list.add(JsonSerializer.toObject(type, json.get(i))); - } - return list; + return instance; + } catch (Exception e) { + throw new IllegalArgumentException( + "Could not deserialize object of type " + type + " from JsonValue", e); } + } + + private static T toRecord(Class type, JsonValue json) { + try { + RecordComponent[] components = type.getRecordComponents(); + Class[] componentTypes = new Class[components.length]; + Object[] values = new Object[components.length]; + + for (int i = 0; i < components.length; i++) { + componentTypes[i] = components[i].getType(); + values[i] = toObject(componentTypes[i], ((JsonObject) json).get(components[i].getName())); + } + + return type.getDeclaredConstructor(componentTypes).newInstance(values); + } catch (Exception e) { + throw new IllegalArgumentException( + "Could not deserialize record of type " + type + " from JsonValue", e); + } + } - private static Optional tryToConvertFromSimpleType(Class type, - JsonValue json) { - if (type.isAssignableFrom(String.class)) { - return Optional.of(json.asString()); - } - if (type.isAssignableFrom(int.class) - || type.isAssignableFrom(Integer.class)) { - return Optional.of((int) json.asNumber()); - } - if (type.isAssignableFrom(double.class) - || type.isAssignableFrom(Double.class)) { - return Optional.of(json.asNumber()); - } - if (type.isAssignableFrom(long.class) - || type.isAssignableFrom(Long.class)) { - return Optional.of((long) json.asNumber()); - } - if (type.isAssignableFrom(short.class) - || type.isAssignableFrom(Short.class)) { - return Optional.of((short) json.asNumber()); - } - if (type.isAssignableFrom(byte.class) - || type.isAssignableFrom(Byte.class)) { - return Optional.of((byte) json.asNumber()); - } - if (type.isAssignableFrom(char.class) - || type.isAssignableFrom(Character.class)) { - return Optional.of(json.asString().charAt(0)); - } - if (type.isAssignableFrom(Boolean.class) - || type.isAssignableFrom(boolean.class)) { - return Optional.of(json.asBoolean()); - } - if (type.isEnum()) { - return Optional.of(Enum.valueOf((Class) type, - json.asString())); - } - if (JsonValue.class.isAssignableFrom(type)) { - return Optional.of(json); - } - return Optional.empty(); - - } - - private static Collection tryToCreateCollection(Class collectionType, - int initialCapacity) { - if (collectionType.isInterface()) { - if (List.class.isAssignableFrom(collectionType)) { - return new ArrayList<>(initialCapacity); - } - if (Set.class.isAssignableFrom(collectionType)) { - return new LinkedHashSet<>(initialCapacity); - } - throw new IllegalArgumentException( - "Collection type not supported: '" - + collectionType.getName() - + "'. Use Lists, Sets or concrete classes that implement java.util.Collection."); - } - try { - return (Collection) collectionType.newInstance(); - } catch (Exception e) { - throw new IllegalArgumentException( - "Could not create an instance of the collection of type " - + collectionType - + ". Make sure it contains a default public constructor and the class is accessible.", - e); - } + private static T toCollection(Class type, Type genericType, JsonValue json) { + if (json.getType() != JsonType.ARRAY) { + return null; + } + if (!(genericType instanceof ParameterizedType)) { + throw new IllegalArgumentException( + "Could not infer the generic parameterized type of the collection of class: " + + type.getName() + + ". The type is no subclass of ParameterizedType: " + + genericType); + } + JsonArray array = (JsonArray) json; + Collection collection = tryToCreateCollection(type, array.length()); + if (array.length() > 0) { + ParameterizedType parameterizedType = (ParameterizedType) genericType; + Class parameterizedClass = (Class) parameterizedType.getActualTypeArguments()[0]; + collection.addAll((List) toObjects(parameterizedClass, (JsonArray) json)); + } + return (T) collection; + } + + /** + * Converts a JsonArray into a collection of Java objects. The Java objects can be Java beans, + * Strings, wrappers of primitive types or enums. + * + * @param type the type of the elements in the array + * @param json the json representation of the objects + * @param the resulting objects types + * @return a modifiable list of converted objects. Returns an empty list if the input array is + * null + */ + public static List toObjects(Class type, JsonArray json) { + if (json == null) { + return new ArrayList<>(0); + } + List list = new ArrayList<>(json.length()); + for (int i = 0; i < json.length(); i++) { + list.add(JsonSerializer.toObject(type, json.get(i))); } + return list; + } + private static Optional tryToConvertFromSimpleType(Class type, JsonValue json) { + if (type.isAssignableFrom(String.class)) { + return Optional.of(json.asString()); + } + if (type.isAssignableFrom(int.class) || type.isAssignableFrom(Integer.class)) { + return Optional.of((int) json.asNumber()); + } + if (type.isAssignableFrom(double.class) || type.isAssignableFrom(Double.class)) { + return Optional.of(json.asNumber()); + } + if (type.isAssignableFrom(long.class) || type.isAssignableFrom(Long.class)) { + return Optional.of((long) json.asNumber()); + } + if (type.isAssignableFrom(short.class) || type.isAssignableFrom(Short.class)) { + return Optional.of((short) json.asNumber()); + } + if (type.isAssignableFrom(byte.class) || type.isAssignableFrom(Byte.class)) { + return Optional.of((byte) json.asNumber()); + } + if (type.isAssignableFrom(char.class) || type.isAssignableFrom(Character.class)) { + return Optional.of(json.asString().charAt(0)); + } + if (type.isAssignableFrom(Boolean.class) || type.isAssignableFrom(boolean.class)) { + return Optional.of(json.asBoolean()); + } + if (type.isEnum()) { + return Optional.of(Enum.valueOf((Class) type, json.asString())); + } + if (JsonValue.class.isAssignableFrom(type)) { + return Optional.of(json); + } + return Optional.empty(); + } + + private static Collection tryToCreateCollection(Class collectionType, int initialCapacity) { + if (collectionType.isInterface()) { + if (List.class.isAssignableFrom(collectionType)) { + return new ArrayList<>(initialCapacity); + } + if (Set.class.isAssignableFrom(collectionType)) { + return new LinkedHashSet<>(initialCapacity); + } + throw new IllegalArgumentException( + "Collection type not supported: '" + + collectionType.getName() + + "'. Use Lists, Sets or concrete classes that implement java.util.Collection."); + } + try { + return (Collection) collectionType.newInstance(); + } catch (Exception e) { + throw new IllegalArgumentException( + "Could not create an instance of the collection of type " + + collectionType + + ". Make sure it contains a default public constructor and the class is accessible.", + e); + } + } } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable.java index 1842928..53f3dc7 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable.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. @@ -26,12 +26,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -/** - * When instrumented, publishes the annotated method as if {@link ClientCallable} has been used. - */ +/** When instrumented, publishes the annotated method as if {@link ClientCallable} has been used. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @Documented -public @interface LegacyClientCallable { - -} +public @interface LegacyClientCallable {} diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/LegacyJsonMigrationHelper.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/LegacyJsonMigrationHelper.java index bc748f5..890a493 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/LegacyJsonMigrationHelper.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/LegacyJsonMigrationHelper.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. @@ -21,8 +21,8 @@ import com.vaadin.flow.component.Component; import com.vaadin.flow.component.page.PendingJavaScriptResult; -import java.lang.reflect.Method; import elemental.json.JsonValue; +import java.lang.reflect.Method; import lombok.AllArgsConstructor; import lombok.NoArgsConstructor; import lombok.SneakyThrows; @@ -47,7 +47,7 @@ public JsonValue convertToJsonValue(Object object) { object.getClass().getName() + " cannot be converted to elemental.json.JsonObject"); } } - + @Override public T convertToClientCallableResult(T object) { return object; @@ -69,8 +69,6 @@ public ElementalPendingJavaScriptResult convertPendingJavaScriptResult( @AllArgsConstructor private static final class PendingJavaScriptResultImpl implements ElementalPendingJavaScriptResult, PendingJavaScriptResult { - @Delegate - private final PendingJavaScriptResult delegate; + @Delegate private final PendingJavaScriptResult delegate; } - } diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/UnsupportedJsonValueImpl.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/UnsupportedJsonValueImpl.java index 15d477c..9b81252 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/UnsupportedJsonValueImpl.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/UnsupportedJsonValueImpl.java @@ -53,5 +53,4 @@ default boolean jsEquals(JsonValue value) { default Object toNative() { throw new UnsupportedOperationException(); } - -} \ No newline at end of file +} diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/BaseClientCallable.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/BaseClientCallable.java index b78268a..8be3e06 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/BaseClientCallable.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/BaseClientCallable.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. @@ -32,5 +32,4 @@ protected final void trace() { public boolean hasBeenTraced() { return traced; } - } 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 7eb1345..8546198 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 @@ -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. @@ -19,15 +19,12 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable_D__V extends BaseClientCallable { - @ClientCallable - public void test(double arg) { - trace(); - } + @ClientCallable + public void test(double arg) { + trace(); + } } - - 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 de5350e..e8a1f9a 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 @@ -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. @@ -19,15 +19,12 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable_I__V extends BaseClientCallable { - @ClientCallable - public void test(int arg) { - trace(); - } + @ClientCallable + public void test(int arg) { + trace(); + } } - - 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 eb4a2bc..abfb4a1 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 @@ -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. @@ -19,17 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.JsonArray; public class ClientCallable_JsonArray__V extends BaseClientCallable { - @ClientCallable - public void test(JsonArray arg) { - trace(); - } + @ClientCallable + public void test(JsonArray arg) { + trace(); + } } - - 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 ed09ef5..9e4cb39 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 @@ -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. @@ -19,9 +19,7 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.JsonBoolean; public class ClientCallable_JsonBoolean__V extends BaseClientCallable { @@ -31,5 +29,3 @@ public void test(JsonBoolean arg) { trace(); } } - - 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 467b5d3..c1d8678 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 @@ -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. @@ -19,17 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.JsonNull; public class ClientCallable_JsonNull__V extends BaseClientCallable { - @ClientCallable - public void test(JsonNull arg) { - trace(); - } + @ClientCallable + public void test(JsonNull arg) { + trace(); + } } - - 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 e524eb2..e248074 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 @@ -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. @@ -19,17 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.JsonNumber; public class ClientCallable_JsonNumber__V extends BaseClientCallable { - @ClientCallable - public void test(JsonNumber arg) { - trace(); - } + @ClientCallable + public void test(JsonNumber arg) { + trace(); + } } - - 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 0dfa161..a5ad6fd 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 @@ -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. @@ -19,17 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.JsonObject; public class ClientCallable_JsonObject__V extends BaseClientCallable { - @ClientCallable - public void test(JsonObject arg) { - trace(); - } + @ClientCallable + public void test(JsonObject arg) { + trace(); + } } - - 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 9d0bf25..89c1779 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 @@ -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. @@ -19,17 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.JsonString; public class ClientCallable_JsonString__V extends BaseClientCallable { - @ClientCallable - public void test(JsonString arg) { - trace(); - } + @ClientCallable + public void test(JsonString arg) { + trace(); + } } - - 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 f2cb541..4f15f86 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 @@ -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. @@ -19,17 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.JsonValue; public class ClientCallable_JsonValue__V extends BaseClientCallable { - @ClientCallable - public void test(JsonValue arg) { - trace(); - } + @ClientCallable + public void test(JsonValue arg) { + trace(); + } } - - 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 fc26903..df2132c 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 @@ -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. @@ -19,15 +19,12 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable_String__V extends BaseClientCallable { - @ClientCallable - public void test(String arg) { - trace(); - } + @ClientCallable + public void test(String arg) { + trace(); + } } - - 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 19e51d1..ae824fd 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 @@ -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. @@ -19,15 +19,12 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable_Z__V extends BaseClientCallable { - @ClientCallable - public void test(boolean arg) { - trace(); - } + @ClientCallable + public void test(boolean arg) { + trace(); + } } - - 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 345df4c..e4074a8 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__D.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__D.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. @@ -19,16 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable__D extends BaseClientCallable { - @ClientCallable - public double test() { - trace(); - return 0.0; - } + @ClientCallable + public double test() { + trace(); + return 0.0; + } } - - 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 34c0d45..f6e0757 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__I.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__I.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. @@ -19,16 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable__I extends BaseClientCallable { - @ClientCallable - public int test() { - trace(); - return 0; - } + @ClientCallable + public int test() { + trace(); + return 0; + } } - - 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 8620d6a..0f60bb1 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Integer.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Integer.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. @@ -19,16 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable__Integer extends BaseClientCallable { - @ClientCallable - public Integer test() { - trace(); - return 0; - } + @ClientCallable + public Integer test() { + trace(); + return 0; + } } - - 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 cfcfdb1..189dc59 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonArray.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonArray.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. @@ -19,19 +19,15 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.Json; import elemental.json.JsonArray; public class ClientCallable__JsonArray extends BaseClientCallable { - @ClientCallable - public JsonArray test() { - trace(); - return Json.createArray(); - } + @ClientCallable + public JsonArray test() { + trace(); + return Json.createArray(); + } } - - 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 c23cc29..fbfbbb5 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonBoolean.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonBoolean.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. @@ -19,19 +19,15 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.Json; import elemental.json.JsonBoolean; public class ClientCallable__JsonBoolean extends BaseClientCallable { - @ClientCallable - public JsonBoolean test() { - trace(); - return Json.create(true); - } + @ClientCallable + public JsonBoolean test() { + trace(); + return Json.create(true); + } } - - 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 db18ce6..131f452 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNull.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNull.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. @@ -19,19 +19,15 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.Json; import elemental.json.JsonNull; public class ClientCallable__JsonNull extends BaseClientCallable { - @ClientCallable - public JsonNull test() { - trace(); - return Json.createNull(); - } + @ClientCallable + public JsonNull test() { + trace(); + return Json.createNull(); + } } - - 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 c53dd23..b5e0af6 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNumber.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonNumber.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. @@ -19,19 +19,15 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.Json; import elemental.json.JsonNumber; public class ClientCallable__JsonNumber extends BaseClientCallable { - @ClientCallable - public JsonNumber test() { - trace(); - return Json.create(0); - } + @ClientCallable + public JsonNumber test() { + trace(); + return Json.create(0); + } } - - 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 ccfaf68..c576c67 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonObject.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonObject.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. @@ -19,19 +19,15 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.Json; import elemental.json.JsonObject; public class ClientCallable__JsonObject extends BaseClientCallable { - @ClientCallable - public JsonObject test() { - trace(); - return Json.createObject(); - } + @ClientCallable + public JsonObject test() { + trace(); + return Json.createObject(); + } } - - 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 85aa3e8..9ed671a 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonString.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonString.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. @@ -19,19 +19,15 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.Json; import elemental.json.JsonString; public class ClientCallable__JsonString extends BaseClientCallable { - @ClientCallable - public JsonString test() { - trace(); - return Json.create(""); - } + @ClientCallable + public JsonString test() { + trace(); + return Json.create(""); + } } - - 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 773be1a..22de4e2 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonValue.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__JsonValue.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. @@ -19,19 +19,15 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; - import elemental.json.Json; import elemental.json.JsonValue; public class ClientCallable__JsonValue extends BaseClientCallable { - @ClientCallable - public JsonValue test() { - trace(); - return Json.createObject(); - } + @ClientCallable + public JsonValue test() { + trace(); + return Json.createObject(); + } } - - 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 a7ccc5c..ec3ec5f 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__V.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__V.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. @@ -19,15 +19,12 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable__V extends BaseClientCallable { - @ClientCallable - public void test() { - trace(); - } + @ClientCallable + public void test() { + trace(); + } } - - 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 86f42e7..5c6cd44 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Z.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallable__Z.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. @@ -19,16 +19,13 @@ */ package com.flowingcode.vaadin.jsonmigration; - import com.vaadin.flow.component.ClientCallable; public class ClientCallable__Z extends BaseClientCallable { - @ClientCallable - public boolean test() { - trace(); - return true; - } + @ClientCallable + public boolean test() { + trace(); + return true; + } } - - diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest.java index d498f3d..db1884d 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest.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. @@ -21,6 +21,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; + import com.vaadin.flow.component.ClientCallable; import com.vaadin.flow.component.Component; import elemental.json.JsonValue; @@ -53,7 +54,7 @@ protected static Method getClientCallableTestMethod(Class c * Invokes the test method on the instrumented instance via reflection. * * @param instrumented the instrumented instance - * @param args the arguments to pass to the test method + * @param args the arguments to pass to the test method * @return the result of the method invocation * @throws Exception if invocation fails */ @@ -78,48 +79,48 @@ private Object invokeTestMethod(BaseClientCallable instrumented, Object... args) @Test public void test__V() throws Exception { - ClientCallable__V instrumented = instrumentClass(ClientCallable__V.class).getDeclaredConstructor() - .newInstance(); + ClientCallable__V instrumented = + instrumentClass(ClientCallable__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_Z__V() throws Exception { - ClientCallable_Z__V instrumented = instrumentClass(ClientCallable_Z__V.class).getDeclaredConstructor() - .newInstance(); + ClientCallable_Z__V instrumented = + instrumentClass(ClientCallable_Z__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, true); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_I__V() throws Exception { - ClientCallable_I__V instrumented = instrumentClass(ClientCallable_I__V.class).getDeclaredConstructor() - .newInstance(); + ClientCallable_I__V instrumented = + instrumentClass(ClientCallable_I__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, 42); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_D__V() throws Exception { - ClientCallable_D__V instrumented = instrumentClass(ClientCallable_D__V.class).getDeclaredConstructor() - .newInstance(); + ClientCallable_D__V instrumented = + instrumentClass(ClientCallable_D__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, 3.14); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_String__V() throws Exception { - ClientCallable_String__V instrumented = instrumentClass(ClientCallable_String__V.class) - .getDeclaredConstructor().newInstance(); + ClientCallable_String__V instrumented = + instrumentClass(ClientCallable_String__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, "test"); assertTrue(instrumented.hasBeenTraced()); } @Test public void test__Z() throws Exception { - ClientCallable__Z instrumented = instrumentClass(ClientCallable__Z.class).getDeclaredConstructor() - .newInstance(); + ClientCallable__Z instrumented = + instrumentClass(ClientCallable__Z.class).getDeclaredConstructor().newInstance(); ClientCallable__Z nonInstrumented = new ClientCallable__Z(); boolean result = (boolean) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -128,8 +129,8 @@ public void test__Z() throws Exception { @Test public void test__I() throws Exception { - ClientCallable__I instrumented = instrumentClass(ClientCallable__I.class).getDeclaredConstructor() - .newInstance(); + ClientCallable__I instrumented = + instrumentClass(ClientCallable__I.class).getDeclaredConstructor().newInstance(); ClientCallable__I nonInstrumented = new ClientCallable__I(); int result = (int) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -138,8 +139,8 @@ public void test__I() throws Exception { @Test public void test__D() throws Exception { - ClientCallable__D instrumented = instrumentClass(ClientCallable__D.class).getDeclaredConstructor() - .newInstance(); + ClientCallable__D instrumented = + instrumentClass(ClientCallable__D.class).getDeclaredConstructor().newInstance(); ClientCallable__D nonInstrumented = new ClientCallable__D(); double result = (double) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -148,8 +149,8 @@ public void test__D() throws Exception { @Test public void test__Integer() throws Exception { - ClientCallable__Integer instrumented = instrumentClass(ClientCallable__Integer.class) - .getDeclaredConstructor().newInstance(); + ClientCallable__Integer instrumented = + instrumentClass(ClientCallable__Integer.class).getDeclaredConstructor().newInstance(); ClientCallable__Integer nonInstrumented = new ClientCallable__Integer(); Integer result = (Integer) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -158,8 +159,8 @@ public void test__Integer() throws Exception { @Test public void test__JsonValue() throws Exception { - ClientCallable__JsonValue instrumented = instrumentClass(ClientCallable__JsonValue.class) - .getDeclaredConstructor().newInstance(); + ClientCallable__JsonValue instrumented = + instrumentClass(ClientCallable__JsonValue.class).getDeclaredConstructor().newInstance(); ClientCallable__JsonValue nonInstrumented = new ClientCallable__JsonValue(); JsonValue result = (JsonValue) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -168,8 +169,8 @@ public void test__JsonValue() throws Exception { @Test public void test__JsonBoolean() throws Exception { - ClientCallable__JsonBoolean instrumented = instrumentClass(ClientCallable__JsonBoolean.class) - .getDeclaredConstructor().newInstance(); + ClientCallable__JsonBoolean instrumented = + instrumentClass(ClientCallable__JsonBoolean.class).getDeclaredConstructor().newInstance(); ClientCallable__JsonBoolean nonInstrumented = new ClientCallable__JsonBoolean(); JsonValue result = (JsonValue) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -178,8 +179,8 @@ public void test__JsonBoolean() throws Exception { @Test public void test__JsonNumber() throws Exception { - ClientCallable__JsonNumber instrumented = instrumentClass(ClientCallable__JsonNumber.class) - .getDeclaredConstructor().newInstance(); + ClientCallable__JsonNumber instrumented = + instrumentClass(ClientCallable__JsonNumber.class).getDeclaredConstructor().newInstance(); ClientCallable__JsonNumber nonInstrumented = new ClientCallable__JsonNumber(); JsonValue result = (JsonValue) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -188,8 +189,8 @@ public void test__JsonNumber() throws Exception { @Test public void test__JsonString() throws Exception { - ClientCallable__JsonString instrumented = instrumentClass(ClientCallable__JsonString.class) - .getDeclaredConstructor().newInstance(); + ClientCallable__JsonString instrumented = + instrumentClass(ClientCallable__JsonString.class).getDeclaredConstructor().newInstance(); ClientCallable__JsonString nonInstrumented = new ClientCallable__JsonString(); JsonValue result = (JsonValue) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -198,8 +199,8 @@ public void test__JsonString() throws Exception { @Test public void test__JsonNull() throws Exception { - ClientCallable__JsonNull instrumented = instrumentClass(ClientCallable__JsonNull.class) - .getDeclaredConstructor().newInstance(); + ClientCallable__JsonNull instrumented = + instrumentClass(ClientCallable__JsonNull.class).getDeclaredConstructor().newInstance(); ClientCallable__JsonNull nonInstrumented = new ClientCallable__JsonNull(); JsonValue result = (JsonValue) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -208,8 +209,8 @@ public void test__JsonNull() throws Exception { @Test public void test__JsonArray() throws Exception { - ClientCallable__JsonArray instrumented = instrumentClass(ClientCallable__JsonArray.class) - .getDeclaredConstructor().newInstance(); + ClientCallable__JsonArray instrumented = + instrumentClass(ClientCallable__JsonArray.class).getDeclaredConstructor().newInstance(); ClientCallable__JsonArray nonInstrumented = new ClientCallable__JsonArray(); JsonValue result = (JsonValue) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -218,8 +219,8 @@ public void test__JsonArray() throws Exception { @Test public void test__JsonObject() throws Exception { - ClientCallable__JsonObject instrumented = instrumentClass(ClientCallable__JsonObject.class) - .getDeclaredConstructor().newInstance(); + ClientCallable__JsonObject instrumented = + instrumentClass(ClientCallable__JsonObject.class).getDeclaredConstructor().newInstance(); ClientCallable__JsonObject nonInstrumented = new ClientCallable__JsonObject(); JsonValue result = (JsonValue) invokeTestMethod(instrumented); assertTrue(instrumented.hasBeenTraced()); @@ -228,58 +229,57 @@ public void test__JsonObject() throws Exception { @Test public void test_JsonValue__V() throws Exception { - ClientCallable_JsonValue__V instrumented = instrumentClass(ClientCallable_JsonValue__V.class) - .getDeclaredConstructor().newInstance(); + ClientCallable_JsonValue__V instrumented = + instrumentClass(ClientCallable_JsonValue__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, createJsonNull()); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_JsonBoolean__V() throws Exception { - ClientCallable_JsonBoolean__V instrumented = instrumentClass(ClientCallable_JsonBoolean__V.class) - .getDeclaredConstructor().newInstance(); + ClientCallable_JsonBoolean__V instrumented = + instrumentClass(ClientCallable_JsonBoolean__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, createJsonBoolean()); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_JsonNumber__V() throws Exception { - ClientCallable_JsonNumber__V instrumented = instrumentClass(ClientCallable_JsonNumber__V.class) - .getDeclaredConstructor().newInstance(); + ClientCallable_JsonNumber__V instrumented = + instrumentClass(ClientCallable_JsonNumber__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, createJsonNumber()); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_JsonString__V() throws Exception { - ClientCallable_JsonString__V instrumented = instrumentClass(ClientCallable_JsonString__V.class) - .getDeclaredConstructor().newInstance(); + ClientCallable_JsonString__V instrumented = + instrumentClass(ClientCallable_JsonString__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, createJsonString()); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_JsonNull__V() throws Exception { - ClientCallable_JsonNull__V instrumented = instrumentClass(ClientCallable_JsonNull__V.class) - .getDeclaredConstructor().newInstance(); + ClientCallable_JsonNull__V instrumented = + instrumentClass(ClientCallable_JsonNull__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, createJsonNull()); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_JsonArray__V() throws Exception { - ClientCallable_JsonArray__V instrumented = instrumentClass(ClientCallable_JsonArray__V.class) - .getDeclaredConstructor().newInstance(); + ClientCallable_JsonArray__V instrumented = + instrumentClass(ClientCallable_JsonArray__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, createJsonArray()); assertTrue(instrumented.hasBeenTraced()); } @Test public void test_JsonObject__V() throws Exception { - ClientCallable_JsonObject__V instrumented = instrumentClass(ClientCallable_JsonObject__V.class) - .getDeclaredConstructor().newInstance(); + ClientCallable_JsonObject__V instrumented = + instrumentClass(ClientCallable_JsonObject__V.class).getDeclaredConstructor().newInstance(); invokeTestMethod(instrumented, createJsonObject()); assertTrue(instrumented.hasBeenTraced()); } - } diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest24.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest24.java index a8f9ddb..881e695 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest24.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest24.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. @@ -19,9 +19,9 @@ */ package com.flowingcode.vaadin.jsonmigration; - import static org.hamcrest.Matchers.containsString; import static org.junit.Assert.assertEquals; + import com.vaadin.flow.component.Component; import elemental.json.Json; import elemental.json.JsonValue; @@ -32,8 +32,7 @@ public class ClientCallablesTest24 extends ClientCallablesTest { private static final String ERRMSG = "must be annotated with @LegacyClientCallable"; - @Rule - public ExpectedException thrown = ExpectedException.none(); + @Rule public ExpectedException thrown = ExpectedException.none(); @Override protected Class instrumentClass(Class clazz) { @@ -78,8 +77,4 @@ protected Object createJsonArray() { protected Object createJsonObject() { return Json.createObject(); } - - } - - diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest25.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest25.java index 92e17b7..29d3814 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest25.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ClientCallablesTest25.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. @@ -19,8 +19,8 @@ */ package com.flowingcode.vaadin.jsonmigration; - import static org.hamcrest.Matchers.containsString; + import com.vaadin.flow.component.Component; import elemental.json.JsonValue; import org.junit.Rule; @@ -37,8 +37,7 @@ public class ClientCallablesTest25 extends ClientCallablesTest { private static final String ERRMSG = "must be annotated with @LegacyClientCallable"; - @Rule - public ExpectedException thrown = ExpectedException.none(); + @Rule public ExpectedException thrown = ExpectedException.none(); @Override protected Class instrumentClass(Class clazz) { @@ -81,7 +80,4 @@ protected Object createJsonArray() { protected Object createJsonObject() { return new ObjectNode(JsonNodeFactory.instance); } - } - - 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 a5bfcac..0725e48 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/ExtendsLegacyClientCallablePrivate__V.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/ExtendsLegacyClientCallablePrivate__V.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. @@ -19,6 +19,4 @@ */ package com.flowingcode.vaadin.jsonmigration; -public class ExtendsLegacyClientCallablePrivate__V extends LegacyClientCallablePrivate__V { - -} +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 2f9b32f..c7a7f0c 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 @@ -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. @@ -21,8 +21,8 @@ public class LegacyClientCallablePrivate_D__V extends BaseClientCallable { - @LegacyClientCallable - private void test(double arg) { - trace(); - } + @LegacyClientCallable + private void test(double arg) { + trace(); + } } 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 3f196d5..5f36fce 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 @@ -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. @@ -21,8 +21,8 @@ public class LegacyClientCallablePrivate_I__V extends BaseClientCallable { - @LegacyClientCallable - private void test(int arg) { - trace(); - } + @LegacyClientCallable + private void test(int arg) { + trace(); + } } 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 788ca16..6a79d6d 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallablePrivate_JsonArray__V extends BaseClientCallable { - @LegacyClientCallable - private void test(JsonArray arg) { - trace(); - } + @LegacyClientCallable + private void test(JsonArray arg) { + trace(); + } } 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 1196917..a0020ec 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallablePrivate_JsonBoolean__V extends BaseClientCallable { - @LegacyClientCallable - private void test(JsonBoolean arg) { - trace(); - } + @LegacyClientCallable + private void test(JsonBoolean arg) { + trace(); + } } 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 ee4fd38..94d20d6 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallablePrivate_JsonNull__V extends BaseClientCallable { - @LegacyClientCallable - private void test(JsonNull arg) { - trace(); - } + @LegacyClientCallable + private void test(JsonNull arg) { + trace(); + } } 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 ad683a0..6b05253 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallablePrivate_JsonNumber__V extends BaseClientCallable { - @LegacyClientCallable - private void test(JsonNumber arg) { - trace(); - } + @LegacyClientCallable + private void test(JsonNumber arg) { + trace(); + } } 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 6263fd0..5095d63 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallablePrivate_JsonObject__V extends BaseClientCallable { - @LegacyClientCallable - private void test(JsonObject arg) { - trace(); - } + @LegacyClientCallable + private void test(JsonObject arg) { + trace(); + } } 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 5fd872f..5c8e7fc 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallablePrivate_JsonString__V extends BaseClientCallable { - @LegacyClientCallable - private void test(JsonString arg) { - trace(); - } + @LegacyClientCallable + private void test(JsonString arg) { + trace(); + } } 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 4c17e71..618ca03 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallablePrivate_JsonValue__V extends BaseClientCallable { - @LegacyClientCallable - private void test(JsonValue arg) { - trace(); - } + @LegacyClientCallable + private void test(JsonValue arg) { + trace(); + } } 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 7f4baa9..815c706 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 @@ -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. @@ -21,8 +21,8 @@ public class LegacyClientCallablePrivate_String__V extends BaseClientCallable { - @LegacyClientCallable - private void test(String arg) { - trace(); - } + @LegacyClientCallable + private void test(String arg) { + trace(); + } } 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 b7ebaf0..7d59084 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 @@ -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. @@ -21,8 +21,8 @@ public class LegacyClientCallablePrivate_Z__V extends BaseClientCallable { - @LegacyClientCallable - private void test(boolean arg) { - trace(); - } + @LegacyClientCallable + private void test(boolean arg) { + trace(); + } } 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 2f9b478..4ee4a38 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__D.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__D.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. @@ -21,9 +21,9 @@ public class LegacyClientCallablePrivate__D extends BaseClientCallable { - @LegacyClientCallable - private double test() { - trace(); - return 0.0; - } + @LegacyClientCallable + private double test() { + trace(); + return 0.0; + } } 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 96786d3..41ae832 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__I.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__I.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. @@ -21,9 +21,9 @@ public class LegacyClientCallablePrivate__I extends BaseClientCallable { - @LegacyClientCallable - private int test() { - trace(); - return 0; - } + @LegacyClientCallable + private int test() { + trace(); + return 0; + } } 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 126a628..8da8c5a 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Integer.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Integer.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. @@ -21,9 +21,9 @@ public class LegacyClientCallablePrivate__Integer extends BaseClientCallable { - @LegacyClientCallable - private Integer test() { - trace(); - return 0; - } + @LegacyClientCallable + private Integer test() { + trace(); + return 0; + } } 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 782c339..404624f 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonArray.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonArray.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. @@ -24,9 +24,9 @@ public class LegacyClientCallablePrivate__JsonArray extends BaseClientCallable { - @LegacyClientCallable - private JsonArray test() { - trace(); - return Json.createArray(); - } + @LegacyClientCallable + private JsonArray test() { + trace(); + return Json.createArray(); + } } 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 7ebcbd5..2e96e3a 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonBoolean.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonBoolean.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. @@ -24,9 +24,9 @@ public class LegacyClientCallablePrivate__JsonBoolean extends BaseClientCallable { - @LegacyClientCallable - private JsonBoolean test() { - trace(); - return Json.create(true); - } + @LegacyClientCallable + private JsonBoolean test() { + trace(); + return Json.create(true); + } } 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 367fc0a..224923a 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNull.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNull.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. @@ -24,9 +24,9 @@ public class LegacyClientCallablePrivate__JsonNull extends BaseClientCallable { - @LegacyClientCallable - private JsonNull test() { - trace(); - return Json.createNull(); - } + @LegacyClientCallable + private JsonNull test() { + trace(); + return Json.createNull(); + } } 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 c40a410..3f0c732 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNumber.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonNumber.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. @@ -24,9 +24,9 @@ public class LegacyClientCallablePrivate__JsonNumber extends BaseClientCallable { - @LegacyClientCallable - private JsonNumber test() { - trace(); - return Json.create(0); - } + @LegacyClientCallable + private JsonNumber test() { + trace(); + return Json.create(0); + } } 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 4b4820d..73dd6cc 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonObject.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonObject.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. @@ -24,9 +24,9 @@ public class LegacyClientCallablePrivate__JsonObject extends BaseClientCallable { - @LegacyClientCallable - private JsonObject test() { - trace(); - return Json.createObject(); - } + @LegacyClientCallable + private JsonObject test() { + trace(); + return Json.createObject(); + } } 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 b3467e9..4caeb32 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonString.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonString.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. @@ -24,9 +24,9 @@ public class LegacyClientCallablePrivate__JsonString extends BaseClientCallable { - @LegacyClientCallable - private JsonString test() { - trace(); - return Json.create(""); - } + @LegacyClientCallable + private JsonString test() { + trace(); + return Json.create(""); + } } 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 ef89228..78d1f7f 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonValue.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__JsonValue.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. @@ -24,9 +24,9 @@ public class LegacyClientCallablePrivate__JsonValue extends BaseClientCallable { - @LegacyClientCallable - private JsonValue test() { - trace(); - return Json.createObject(); - } + @LegacyClientCallable + private JsonValue test() { + trace(); + return Json.createObject(); + } } 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 a5459a3..2bacf3e 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__V.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__V.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. @@ -21,8 +21,8 @@ public class LegacyClientCallablePrivate__V extends BaseClientCallable { - @LegacyClientCallable - private void test() { - trace(); - } + @LegacyClientCallable + private void test() { + trace(); + } } 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 27f0940..27beb13 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Z.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablePrivate__Z.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. @@ -21,9 +21,9 @@ public class LegacyClientCallablePrivate__Z extends BaseClientCallable { - @LegacyClientCallable - private boolean test() { - trace(); - return true; - } + @LegacyClientCallable + private boolean test() { + trace(); + return true; + } } 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 e1ef04f..6b2afc4 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 @@ -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. @@ -21,8 +21,8 @@ public class LegacyClientCallable_D__V extends BaseClientCallable { - @LegacyClientCallable - public void test(double arg) { - trace(); - } + @LegacyClientCallable + public void test(double arg) { + trace(); + } } 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 66ada29..a106fa2 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 @@ -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. @@ -21,8 +21,8 @@ public class LegacyClientCallable_I__V extends BaseClientCallable { - @LegacyClientCallable - public void test(int arg) { - trace(); - } + @LegacyClientCallable + public void test(int arg) { + trace(); + } } 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 a1dc737..12457f9 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallable_JsonArray__V extends BaseClientCallable { - @LegacyClientCallable - public void test(JsonArray arg) { - trace(); - } + @LegacyClientCallable + public void test(JsonArray arg) { + trace(); + } } 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 d4d76e3..f96f706 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallable_JsonBoolean__V extends BaseClientCallable { - @LegacyClientCallable - public void test(JsonBoolean arg) { - trace(); - } + @LegacyClientCallable + public void test(JsonBoolean arg) { + trace(); + } } 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 e6a2c1d..d085fc0 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallable_JsonNull__V extends BaseClientCallable { - @LegacyClientCallable - public void test(JsonNull arg) { - trace(); - } + @LegacyClientCallable + public void test(JsonNull arg) { + trace(); + } } 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 9aaf895..27fcec0 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallable_JsonNumber__V extends BaseClientCallable { - @LegacyClientCallable - public void test(JsonNumber arg) { - trace(); - } + @LegacyClientCallable + public void test(JsonNumber arg) { + trace(); + } } 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 f06f6e5..e60c7bd 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallable_JsonObject__V extends BaseClientCallable { - @LegacyClientCallable - public void test(JsonObject arg) { - trace(); - } + @LegacyClientCallable + public void test(JsonObject arg) { + trace(); + } } 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 70a7a7f..e7b8c32 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallable_JsonString__V extends BaseClientCallable { - @LegacyClientCallable - public void test(JsonString arg) { - trace(); - } + @LegacyClientCallable + public void test(JsonString arg) { + trace(); + } } 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 5504249..ccd37b6 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 @@ -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. @@ -23,8 +23,8 @@ public class LegacyClientCallable_JsonValue__V extends BaseClientCallable { - @LegacyClientCallable - public void test(JsonValue arg) { - trace(); - } + @LegacyClientCallable + public void test(JsonValue arg) { + trace(); + } } 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 0aa55c8..3250749 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 @@ -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. @@ -21,8 +21,8 @@ public class LegacyClientCallable_String__V extends BaseClientCallable { - @LegacyClientCallable - public void test(String arg) { - trace(); - } + @LegacyClientCallable + public void test(String arg) { + trace(); + } } 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 219c002..9d191a0 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 @@ -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. @@ -21,8 +21,8 @@ public class LegacyClientCallable_Z__V extends BaseClientCallable { - @LegacyClientCallable - public void test(boolean arg) { - trace(); - } + @LegacyClientCallable + public void test(boolean arg) { + trace(); + } } 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 cb5c548..75db780 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__D.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__D.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. @@ -21,9 +21,9 @@ public class LegacyClientCallable__D extends BaseClientCallable { - @LegacyClientCallable - public double test() { - trace(); - return 0.0; - } + @LegacyClientCallable + public double test() { + trace(); + return 0.0; + } } 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 6c10d8e..942998e 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__I.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__I.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. @@ -21,9 +21,9 @@ public class LegacyClientCallable__I extends BaseClientCallable { - @LegacyClientCallable - public int test() { - trace(); - return 0; - } + @LegacyClientCallable + public int test() { + trace(); + return 0; + } } 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 9b5216e..ef7a71e 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Integer.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Integer.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. @@ -21,9 +21,9 @@ public class LegacyClientCallable__Integer extends BaseClientCallable { - @LegacyClientCallable - public Integer test() { - trace(); - return 0; - } + @LegacyClientCallable + public Integer test() { + trace(); + return 0; + } } 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 4c6766d..983439a 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonArray.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonArray.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. @@ -24,9 +24,9 @@ public class LegacyClientCallable__JsonArray extends BaseClientCallable { - @LegacyClientCallable - public JsonArray test() { - trace(); - return Json.createArray(); - } + @LegacyClientCallable + public JsonArray test() { + trace(); + return Json.createArray(); + } } 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 e3b261d..e8f27d9 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonBoolean.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonBoolean.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. @@ -24,9 +24,9 @@ public class LegacyClientCallable__JsonBoolean extends BaseClientCallable { - @LegacyClientCallable - public JsonBoolean test() { - trace(); - return Json.create(true); - } + @LegacyClientCallable + public JsonBoolean test() { + trace(); + return Json.create(true); + } } 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 e06a535..3c24a83 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNull.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNull.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. @@ -24,9 +24,9 @@ public class LegacyClientCallable__JsonNull extends BaseClientCallable { - @LegacyClientCallable - public JsonNull test() { - trace(); - return Json.createNull(); - } + @LegacyClientCallable + public JsonNull test() { + trace(); + return Json.createNull(); + } } 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 c11e83a..48a2b8b 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNumber.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonNumber.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. @@ -24,9 +24,9 @@ public class LegacyClientCallable__JsonNumber extends BaseClientCallable { - @LegacyClientCallable - public JsonNumber test() { - trace(); - return Json.create(0); - } + @LegacyClientCallable + public JsonNumber test() { + trace(); + return Json.create(0); + } } 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 2874f83..7073b06 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonObject.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonObject.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. @@ -24,9 +24,9 @@ public class LegacyClientCallable__JsonObject extends BaseClientCallable { - @LegacyClientCallable - public JsonObject test() { - trace(); - return Json.createObject(); - } + @LegacyClientCallable + public JsonObject test() { + trace(); + return Json.createObject(); + } } 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 69b333e..51920cd 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonString.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonString.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. @@ -24,9 +24,9 @@ public class LegacyClientCallable__JsonString extends BaseClientCallable { - @LegacyClientCallable - public JsonString test() { - trace(); - return Json.create(""); - } + @LegacyClientCallable + public JsonString test() { + trace(); + return Json.create(""); + } } 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 63b0475..66bb55f 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonValue.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__JsonValue.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. @@ -24,9 +24,9 @@ public class LegacyClientCallable__JsonValue extends BaseClientCallable { - @LegacyClientCallable - public JsonValue test() { - trace(); - return Json.createObject(); - } + @LegacyClientCallable + public JsonValue test() { + trace(); + return Json.createObject(); + } } 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 a0cfa59..afc9444 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__V.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__V.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. @@ -21,8 +21,8 @@ public class LegacyClientCallable__V extends BaseClientCallable { - @LegacyClientCallable - public void test() { - trace(); - } + @LegacyClientCallable + public void test() { + trace(); + } } 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 5ea52a7..6890322 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Z.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallable__Z.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. @@ -21,9 +21,9 @@ public class LegacyClientCallable__Z extends BaseClientCallable { - @LegacyClientCallable - public boolean test() { - trace(); - return true; - } + @LegacyClientCallable + public boolean test() { + trace(); + return true; + } } diff --git a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest.java b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest.java index 3e4bf1e..1407db9 100644 --- a/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest.java +++ b/src/test/java/com/flowingcode/vaadin/jsonmigration/LegacyClientCallablesPrivateTest.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. @@ -21,6 +21,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; + import com.vaadin.flow.component.ClientCallable; import com.vaadin.flow.component.Component; import elemental.json.JsonValue; @@ -41,7 +42,8 @@ public abstract class LegacyClientCallablesPrivateTest { * @param c the instrumented callable instance * @return the Method if found, null otherwise */ - private static Method getAnnotatedTestMethod(BaseClientCallable c, Class annotationType) { + private static Method getAnnotatedTestMethod( + BaseClientCallable c, Class annotationType) { for (Method method : c.getClass().getDeclaredMethods()) { if ("test".equals(method.getName()) && method.isAnnotationPresent(annotationType)) { return method; @@ -54,18 +56,20 @@ private static Method getAnnotatedTestMethod(BaseClientCallable c, Class Date: Wed, 3 Dec 2025 13:09:47 -0300 Subject: [PATCH 8/8] refactor: use JsonCodec provided by this library --- .../vaadin/jsonmigration/ElementalPendingJavaScriptResult.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalPendingJavaScriptResult.java b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalPendingJavaScriptResult.java index 648f998..2980564 100644 --- a/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalPendingJavaScriptResult.java +++ b/src/main/java/com/flowingcode/vaadin/jsonmigration/ElementalPendingJavaScriptResult.java @@ -37,7 +37,6 @@ import com.vaadin.flow.component.page.PendingJavaScriptResult; import com.vaadin.flow.function.SerializableConsumer; -import com.vaadin.flow.internal.JsonCodec; import elemental.json.JsonValue; import java.io.Serializable; import java.util.concurrent.CompletableFuture;