Skip to content

Commit baaeec4

Browse files
committed
feat: add support for Vaadin 25
Close #5
1 parent a096bcd commit baaeec4

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@
8383
<artifactId>vaadin-core</artifactId>
8484
<optional>true</optional>
8585
</dependency>
86+
<dependency>
87+
<groupId>com.flowingcode.vaadin</groupId>
88+
<artifactId>json-migration-helper</artifactId>
89+
<version>0.9.2</version>
90+
<scope>compile</scope>
91+
</dependency>
8692
<dependency>
8793
<groupId>org.projectlombok</groupId>
8894
<artifactId>lombok</artifactId>

src/main/java/com/flowingcode/vaadin/addons/uploadhelper/FileInfo.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -19,16 +19,19 @@
1919
*/
2020
package com.flowingcode.vaadin.addons.uploadhelper;
2121

22+
import com.flowingcode.vaadin.jsonmigration.JsonMigration;
2223
import com.vaadin.flow.component.upload.FinishedEvent;
2324
import com.vaadin.flow.component.upload.Upload;
2425
import elemental.json.Json;
2526
import elemental.json.JsonObject;
2627
import java.io.Serializable;
2728
import lombok.AccessLevel;
2829
import lombok.Getter;
30+
import lombok.experimental.ExtensionMethod;
2931

3032
/** Represents a file in the file list of an {@link Upload} component. */
3133
@SuppressWarnings("serial")
34+
@ExtensionMethod(value = JsonMigration.class, suppressBaseMethods = true)
3235
public final class FileInfo implements Serializable {
3336

3437
private final String name;

0 commit comments

Comments
 (0)