Skip to content

Commit

Permalink
Refactor to allow removal of Constants class
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Apr 20, 2020
1 parent 66468c8 commit 001104b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion java/org/apache/catalina/servlets/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

package org.apache.catalina.servlets;


/**
* Unused. Will be removed in Tomcat 10.
*/
@Deprecated
public class Constants {

public static final String Package = "org.apache.catalina.servlets";
Expand Down
2 changes: 1 addition & 1 deletion java/org/apache/catalina/servlets/DefaultServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public class DefaultServlet extends HttpServlet {
/**
* The string manager for this package.
*/
protected static final StringManager sm = StringManager.getManager(Constants.Package);
protected static final StringManager sm = StringManager.getManager(DefaultServlet.class);

private static final DocumentBuilderFactory factory;

Expand Down

0 comments on commit 001104b

Please sign in to comment.