Skip to content

Commit

Permalink
Fix UnusedLocalVariable
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 4ac933b commit 5501a2e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion impl/src/main/java/com/sun/el/parser/AstFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public Class getType(EvaluationContext ctx) throws ELException {
* Find the object associated with the given name. Return null if the there is no such object.
*/
private Object findValue(EvaluationContext ctx, String name) {
Object value;
// First check if this is a Lambda argument
if (ctx.isLambdaArgument(name)) {
return ctx.getLambdaArgument(name);
Expand Down
1 change: 0 additions & 1 deletion impl/src/main/java/com/sun/el/util/ReflectionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public static String[] toTypeNameArray(Class[] c) {
*/
public static PropertyDescriptor getPropertyDescriptor(Object base, Object property) throws ELException, PropertyNotFoundException {
String name = ELSupport.coerceToString(property);
PropertyDescriptor p = null;
try {
PropertyDescriptor[] desc = Introspector.getBeanInfo(base.getClass()).getPropertyDescriptors();
for (int i = 0; i < desc.length; i++) {
Expand Down

0 comments on commit 5501a2e

Please sign in to comment.