Fix UnusedLocalVariable
Signed-off-by: Piotrek Zygielo <piotr@zygielo.pl>
diff --git a/impl/src/main/java/com/sun/el/parser/AstFunction.java b/impl/src/main/java/com/sun/el/parser/AstFunction.java
index 3dca551..0455057 100644
--- a/impl/src/main/java/com/sun/el/parser/AstFunction.java
+++ b/impl/src/main/java/com/sun/el/parser/AstFunction.java
@@ -79,7 +79,6 @@
* 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);
diff --git a/impl/src/main/java/com/sun/el/util/ReflectionUtil.java b/impl/src/main/java/com/sun/el/util/ReflectionUtil.java
index 8458a4e..ec489e1 100644
--- a/impl/src/main/java/com/sun/el/util/ReflectionUtil.java
+++ b/impl/src/main/java/com/sun/el/util/ReflectionUtil.java
@@ -129,7 +129,6 @@
*/
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++) {