Skip to content

Commit 0a3ea7c

Browse files
committed
Issue #5006 Dependency on servlet-api updated to version 6.0.0
Signed-off-by: David Matějček <dmatej@seznam.cz>
1 parent caaed55 commit 0a3ea7c

File tree

44 files changed

+36
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+36
-97
lines changed

containers/jetty-http/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
<dependency>
5151
<groupId>jakarta.servlet</groupId>
5252
<artifactId>jakarta.servlet-api</artifactId>
53-
<version>${servlet5.version}</version>
5453
<scope>provided</scope>
5554
</dependency>
5655
<dependency>

containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright (c) 2022 Contributors to the Eclipse Foundation
23
* Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
34
*
45
* This program and the accompanying materials are made available under the
@@ -36,7 +37,6 @@
3637
import jakarta.servlet.AsyncListener;
3738
import jakarta.ws.rs.core.Application;
3839
import jakarta.ws.rs.core.GenericType;
39-
import jakarta.ws.rs.core.Response.Status;
4040
import jakarta.ws.rs.core.SecurityContext;
4141

4242
import jakarta.inject.Inject;
@@ -198,7 +198,7 @@ private void setResponseForInvalidUri(final HttpServletResponse response, final
198198
if (configSetStatusOverSendError) {
199199
response.reset();
200200
//noinspection deprecation
201-
response.setStatus(BAD_REQUEST_STATUS.getStatusCode(), BAD_REQUEST_STATUS.getReasonPhrase());
201+
response.setStatus(BAD_REQUEST_STATUS.getStatusCode());
202202
} else {
203203
response.sendError(BAD_REQUEST_STATUS.getStatusCode(), BAD_REQUEST_STATUS.getReasonPhrase());
204204
}

containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright (c) 2022 Contributors to the Eclipse Foundation
23
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
34
*
45
* This program and the accompanying materials are made available under the
@@ -82,7 +83,7 @@ public UriBuilder getUri() {
8283
return UriBuilder.fromUri("http://localhost").port(getPort()).path(CONTEXT);
8384
}
8485

85-
public void startServer(Class... resources) {
86+
public void startServer(Class<?>... resources) {
8687
ResourceConfig config = new ResourceConfig(resources);
8788
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
8889
startServer(config);

containers/jetty-servlet/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
<dependency>
4747
<groupId>jakarta.servlet</groupId>
4848
<artifactId>jakarta.servlet-api</artifactId>
49-
<version>${servlet5.version}</version>
5049
</dependency>
5150
<dependency>
5251
<groupId>org.eclipse.jetty</groupId>

examples/bookstore-webapp/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
<dependency>
5757
<groupId>jakarta.servlet</groupId>
5858
<artifactId>jakarta.servlet-api</artifactId>
59-
<version>${servlet5.version}</version>
6059
<scope>provided</scope>
6160
</dependency>
6261
<dependency>

examples/freemarker-webapp/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<dependency>
4141
<groupId>jakarta.servlet</groupId>
4242
<artifactId>jakarta.servlet-api</artifactId>
43-
<version>${servlet5.version}</version>
4443
<scope>provided</scope>
4544
</dependency>
4645
<dependency>

examples/helloworld-webapp/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
<dependency>
3333
<groupId>jakarta.servlet</groupId>
3434
<artifactId>jakarta.servlet-api</artifactId>
35-
<version>${servlet5.version}</version>
3635
<!-- <scope>provided</scope> Make this provided for jetty:run -->
3736
</dependency>
3837

examples/osgi-helloworld-webapp/war-bundle/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
<dependency>
5858
<groupId>jakarta.servlet</groupId>
5959
<artifactId>jakarta.servlet-api</artifactId>
60-
<version>${servlet5.version}</version><!-- the current project's ${servlet2.version} is 2.4 and that's not enough -->
6160
<scope>provided</scope>
6261
</dependency>
6362

examples/osgi-http-service/bundle/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<dependency>
3737
<groupId>jakarta.servlet</groupId>
3838
<artifactId>jakarta.servlet-api</artifactId>
39-
<version>${servlet5.version}</version>
4039
</dependency>
4140
<dependency>
4241
<groupId>org.glassfish.jersey.containers</groupId>

examples/servlet3-webapp/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<dependency>
3838
<groupId>jakarta.servlet</groupId>
3939
<artifactId>jakarta.servlet-api</artifactId>
40-
<version>${servlet5.version}</version>
4140
<scope>provided</scope>
4241
</dependency>
4342

0 commit comments

Comments
 (0)