Skip to content

Commit

Permalink
Fix UnusedPrivateMethod
Browse files Browse the repository at this point in the history
Signed-off-by: Piotrek Zygielo <piotr@zygielo.pl>
  • Loading branch information
pzygielo authored and markt-asf committed Jul 1, 2020
1 parent f8b7d0a commit 4991f02
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions impl/src/main/java/com/sun/el/parser/AstIdentifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,6 @@ public void setValue(EvaluationContext ctx, Object value) throws ELException {
}
}

private Object invokeTarget(EvaluationContext ctx, Object target, Object[] paramValues) throws ELException {
if (target instanceof MethodExpression) {
MethodExpression me = (MethodExpression) target;
return me.invoke(ctx.getELContext(), paramValues);
} else if (target == null) {
throw new MethodNotFoundException("Identity '" + this.image + "' was null and was unable to invoke");
} else {
throw new ELException(
"Identity '" + this.image + "' does not reference a MethodExpression instance, returned type: " + target.getClass().getName());
}
}

@Override
public Object invoke(EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws ELException {
return this.getMethodExpression(ctx).invoke(ctx.getELContext(), paramValues);
Expand Down

0 comments on commit 4991f02

Please sign in to comment.