Skip to content

Commit

Permalink
Trivial clean-up. Add missing @deprecated annotations
Browse files Browse the repository at this point in the history
This is a binary compatible change to the API.

Signed-off-by: Mark Thomas <markt@apache.org>
  • Loading branch information
markt-asf committed Feb 6, 2020
1 parent 332a575 commit 3e7cd25
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/main/java/jakarta/servlet/jsp/JspContext.java
Expand Up @@ -184,6 +184,7 @@ public JspContext() {
* @return A valid instance of an ExpressionEvaluator.
* @since JSP 2.0
*/
@Deprecated
public abstract jakarta.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator();

/**
Expand All @@ -195,6 +196,7 @@ public JspContext() {
* @return A valid instance of a VariableResolver.
* @since JSP 2.0
*/
@Deprecated
public abstract jakarta.servlet.jsp.el.VariableResolver getVariableResolver();

/**
Expand Down
1 change: 1 addition & 0 deletions api/src/main/java/jakarta/servlet/jsp/JspException.java
Expand Up @@ -75,6 +75,7 @@ public JspException(Throwable cause) {
*
* @deprecated As of JSP 2.1, replaced by {@link #getCause()}
*/
@Deprecated
public Throwable getRootCause() {
return getCause();
}
Expand Down
1 change: 1 addition & 0 deletions api/src/main/java/jakarta/servlet/jsp/el/ELException.java
Expand Up @@ -24,6 +24,7 @@
* @deprecated As of JSP 2.1, replaced by {@link jakarta.el.ELException}
* @since JSP 2.0
*/
@Deprecated
public class ELException extends Exception {
private static final long serialVersionUID = -3920470039225321534L;

Expand Down
Expand Up @@ -24,6 +24,7 @@
* @deprecated As of JSP 2.1, replaced by {@link jakarta.el.ELException}
* @since JSP 2.0
*/
@Deprecated
public class ELParseException extends ELException {

private static final long serialVersionUID = 3521581805886060118L;
Expand Down
1 change: 1 addition & 0 deletions api/src/main/java/jakarta/servlet/jsp/el/Expression.java
Expand Up @@ -35,6 +35,7 @@
* @deprecated As of JSP 2.1, replaced by {@link jakarta.el.ValueExpression}
* @since JSP 2.0
*/
@Deprecated
public abstract class Expression {

/**
Expand Down
Expand Up @@ -55,6 +55,7 @@
* @deprecated As of JSP 2.1, replaced by {@link jakarta.el.ExpressionFactory}
* @since JSP 2.0
*/
@Deprecated
public abstract class ExpressionEvaluator {

/**
Expand Down
Expand Up @@ -30,6 +30,7 @@
* @deprecated As of JSP 2.1, replaced by {@link jakarta.el.FunctionMapper}
* @since JSP 2.0
*/
@Deprecated
public interface FunctionMapper {
/**
* Resolves the specified local name and prefix into a Java.lang.Method. Returns null if the prefix and local name
Expand Down
Expand Up @@ -33,6 +33,7 @@
* @deprecated As of JSP 2.1, replaced by {@link jakarta.el.ELResolver}
* @since JSP 2.0
*/
@Deprecated
public interface VariableResolver {

/**
Expand Down
1 change: 1 addition & 0 deletions api/src/main/java/jakarta/servlet/jsp/tagext/BodyTag.java
Expand Up @@ -103,6 +103,7 @@ public interface BodyTag extends IterationTag {
*
* @deprecated As of Java JSP API 1.2, use BodyTag.EVAL_BODY_BUFFERED or IterationTag.EVAL_BODY_AGAIN.
*/
@Deprecated
public final static int EVAL_BODY_TAG = 2;

/**
Expand Down

0 comments on commit 3e7cd25

Please sign in to comment.