Skip to content

Commit

Permalink
Fixes #4266 - Cleanup various bits (#4267)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Nov 24, 2024
1 parent 9c7be5f commit c55d9cd
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
*
* @author Manfred Riem ([email protected])
*/
@SuppressWarnings({"deprecation"})
public class DefaultFilterChain implements FilterChain {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class DefaultHttpHeaderManager implements HttpHeaderManager {
/**
* Constructor.
*/
@SuppressWarnings("deprecation")
public DefaultHttpHeaderManager() {
headers = new HashMap<>();
locale = new Locale("en", "US", "ISO-8859-1");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*
* @author Manfred Riem ([email protected])
*/
@SuppressWarnings("deprecation")
public class DefaultHttpSession implements HttpSession {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ public String encodeURL(HttpServletResponse response, String url) {
}

@Override
@SuppressWarnings({"deprecation", "removal"})
public String getComment() {
return comment;
}
Expand Down Expand Up @@ -382,7 +381,6 @@ protected void reapSessions() {
}

@Override
@SuppressWarnings({"deprecation", "removal"})
public void setComment(String comment) {
if (webApplication.isInitialized()) {
throw new IllegalStateException("You cannot call setComment once ServletContext is initialized");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ public int getLocalPort() {
return localPort;
}

@SuppressWarnings("deprecation")
@Override
public Locale getLocale() {
Locale result = Locale.getDefault();
Expand All @@ -573,6 +574,7 @@ public Locale getLocale() {
return result;
}

@SuppressWarnings("deprecation")
@Override
public Enumeration<Locale> getLocales() {
ArrayList<Locale> locales = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ public void sendRedirect(String location) throws IOException {
sendRedirect(location, SC_FOUND, true);
}

@SuppressWarnings("deprecation")
@Override
public void sendRedirect(String location, int status, boolean resetBuffer) throws IOException {
verifyNotCommitted("sendRedirect");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ void testSetCharacterEncoding5() {
/**
* Test setCharacterEncoding method.
*/
@SuppressWarnings("deprecation")
@Test
void testSetCharacterEncoding6() {
DefaultWebApplication webApplication = new DefaultWebApplication();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,6 @@ void testGetSession4() {
assertNull(session);
}

// --------------------- TODO finish alphabetizng -------------------------
/**
* Test createListener method to create a HttpSessionListener.
*
Expand Down
39 changes: 0 additions & 39 deletions extension/compat-glassfish7x/src/test/java/module-info.java

This file was deleted.

39 changes: 0 additions & 39 deletions extension/compat-tomcat10x/src/test/java/module-info.java

This file was deleted.

0 comments on commit c55d9cd

Please sign in to comment.