Skip to content

Commit 08c34e7

Browse files
javier-godoymlopezFC
authored andcommitted
fix: add jakarta.annotation.security.PermitAll annotation
Close #60
1 parent ee7b7ec commit 08c34e7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,13 @@
129129
<groupId>javax.annotation</groupId>
130130
<artifactId>javax.annotation-api</artifactId>
131131
<version>1.3.2</version>
132-
</dependency>
132+
</dependency>
133+
<dependency>
134+
<groupId>jakarta.annotation</groupId>
135+
<artifactId>jakarta.annotation-api</artifactId>
136+
<version>2.1.1</version>
137+
<optional>true</optional>
138+
</dependency>
133139
</dependencies>
134140

135141
<build>

src/main/java/com/flowingcode/vaadin/addons/errorwindow/ErrorView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
import com.vaadin.flow.router.ErrorParameter;
2626
import com.vaadin.flow.router.HasErrorParameter;
2727
import com.vaadin.flow.router.internal.DefaultErrorHandler;
28-
import javax.annotation.security.PermitAll;
2928
import org.apache.http.HttpStatus;
3029

3130
@SuppressWarnings("serial")
3231
@DefaultErrorHandler
33-
@PermitAll
32+
@javax.annotation.security.PermitAll
33+
@jakarta.annotation.security.PermitAll
3434
public class ErrorView extends VerticalLayout implements HasErrorParameter<Exception> {
3535

3636
@Override

0 commit comments

Comments
 (0)