serialization testing
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package org.springframework.binding.expression.el;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.el.ELContext;
|
||||
import javax.el.ELResolver;
|
||||
|
||||
@@ -28,7 +30,7 @@ import javax.el.ELResolver;
|
||||
* @author Keith Donald
|
||||
* @author Jeremy Grelle
|
||||
*/
|
||||
public interface ELContextFactory {
|
||||
public interface ELContextFactory extends Serializable {
|
||||
|
||||
/**
|
||||
* Configures and returns an {@link ELContext} to be used in evaluating EL expressions on the given base target
|
||||
|
||||
@@ -69,16 +69,16 @@ class OgnlExpression implements Expression {
|
||||
this.expressionString = expressionString;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return expression.hashCode();
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof OgnlExpression)) {
|
||||
return false;
|
||||
}
|
||||
OgnlExpression other = (OgnlExpression) o;
|
||||
return expression.equals(other.expression);
|
||||
return expressionString.equals(other.expressionString);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return expressionString.hashCode();
|
||||
}
|
||||
|
||||
public Object getValue(Object context) throws EvaluationException {
|
||||
|
||||
Reference in New Issue
Block a user