BATCH-1295:

*Provide ability to pass job's ExecutionContext into AbstractJobTests.launchStep() and StepRunner.launchStep()
 *Modified SimpleMethodInvoker.hashCode() so that it is not dependent on commons-lang
This commit is contained in:
dhgarrette
2009-06-21 15:55:22 +00:00
parent 1a92c5479a
commit 026bb0665e
9 changed files with 204 additions and 79 deletions

View File

@@ -34,7 +34,6 @@ package org.springframework.batch.support;
import java.lang.reflect.Method;
import java.util.Arrays;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.springframework.aop.framework.Advised;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
@@ -145,6 +144,9 @@ public class SimpleMethodInvoker implements MethodInvoker {
@Override
public int hashCode() {
return new HashCodeBuilder(25, 37).append(object.hashCode()).append(method.hashCode()).toHashCode();
int result = 25;
result = 31 * result + object.hashCode();
result = 31 * result + method.hashCode();
return result;
}
}