You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2019/05/09 19:30:48 UTC
[tomcat] 03/03: Add @Deprecated to deprecated methods to silence
IDE warnings
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit cfc165d667e7dda1389396b20d58ee06316340fb
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu May 9 20:30:23 2019 +0100
Add @Deprecated to deprecated methods to silence IDE warnings
---
java/org/apache/catalina/servlets/DefaultServlet.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java b/java/org/apache/catalina/servlets/DefaultServlet.java
index b5d2b14..86956fa 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -1574,6 +1574,7 @@ public class DefaultServlet extends HttpServlet {
*
* @deprecated Use {@link #render(HttpServletRequest, String, WebResource, String)} instead
*/
+ @Deprecated
protected InputStream render(String contextPath, WebResource resource, String encoding)
throws IOException, ServletException {
@@ -1620,6 +1621,7 @@ public class DefaultServlet extends HttpServlet {
* @throws ServletException rendering error
* @deprecated Use {@link #render(HttpServletRequest, String, WebResource, String)} instead
*/
+ @Deprecated
protected InputStream renderXml(String contextPath, WebResource resource, Source xsltSource,
String encoding)
throws ServletException, IOException
@@ -1774,6 +1776,7 @@ public class DefaultServlet extends HttpServlet {
*
* @deprecated Use {@link #renderHtml(HttpServletRequest, String, WebResource, String)} instead
*/
+ @Deprecated
protected InputStream renderHtml(String contextPath, WebResource resource, String encoding)
throws IOException {
return renderHtml(null, contextPath, resource, encoding);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org