Skip to content

Commit

Permalink
fuly drop jakarta servlet stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
eschultink committed Jul 16, 2024
1 parent 6fbf9bd commit d774f06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@
<artifactId>guava</artifactId>
<version>[32.1,32.99]</version>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.1.0</version>
<scope>provided</scope>
</dependency>
<!-- <dependency>-->
<!-- <groupId>jakarta.servlet</groupId>-->
<!-- <artifactId>jakarta.servlet-api</artifactId>-->
<!-- <version>6.1.0</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
import com.google.common.collect.LinkedListMultimap;
import com.google.common.collect.ListMultimap;
import com.google.common.net.HttpHeaders;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import javax.servlet.http.HttpServletRequest;
import java.io.*;
import java.net.MalformedURLException;
import java.net.URL;
Expand All @@ -32,7 +31,7 @@
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;

/** Simple fake implementation of {@link HttpServletResponse}. */
/** Simple fake implementation of {@link HttpServletResponse}. Intended for compatibility with jakarta */
public class FakeHttpServletResponse implements javax.servlet.http.HttpServletResponse {
private static final String DEFAULT_CHARSET = "ISO-8859-1";
private final ListMultimap<String, String> headers = LinkedListMultimap.create();
Expand Down

0 comments on commit d774f06

Please sign in to comment.