Skip to content

Commit

Permalink
Trivial clean-up. Add missing generics
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 3e7cd25 commit d43b63d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public abstract class ExpressionEvaluator {
*
* @exception ELException Thrown if parsing errors were found.
*/
public abstract Expression parseExpression(String expression, Class expectedType, FunctionMapper fMapper)
public abstract Expression parseExpression(String expression, Class<?> expectedType, FunctionMapper fMapper)
throws ELException;

/**
Expand All @@ -92,6 +92,6 @@ public abstract Expression parseExpression(String expression, Class expectedType
*
* @exception ELException Thrown if the expression evaluation failed.
*/
public abstract Object evaluate(String expression, Class expectedType, VariableResolver vResolver,
public abstract Object evaluate(String expression, Class<?> expectedType, VariableResolver vResolver,
FunctionMapper fMapper) throws ELException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public Object getValue(ELContext context, Object base, Object property) {
* @throws NullPointerException if context is <code>null</code>
*/
@Override
public Class getType(ELContext context, Object base, Object property) {
public Class<?> getType(ELContext context, Object base, Object property) {

if (context == null) {
throw new NullPointerException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class TagSupport implements IterationTag, Serializable {
* @param klass The subclass of Tag or interface to be matched
* @return the nearest ancestor that implements the interface or is an instance of the class specified
*/
public static final Tag findAncestorWithClass(Tag from, Class klass) {
public static final Tag findAncestorWithClass(Tag from, Class<?> klass) {
boolean isInterface = false;

if (from == null || klass == null
Expand Down

0 comments on commit d43b63d

Please sign in to comment.