From 4e736032c066d85dfccc028a813bf8e9eaf88533 Mon Sep 17 00:00:00 2001 From: dsyer Date: Wed, 10 Oct 2007 08:56:11 +0000 Subject: [PATCH] OPEN - issue BATCH-159: JobExecutor should return a JobExecution (which itself contains the ExitStatus) http://opensource.atlassian.com/projects/spring/browse/BATCH-159 --- .../java/org/springframework/batch/core/domain/Entity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/org/springframework/batch/core/domain/Entity.java b/core/src/main/java/org/springframework/batch/core/domain/Entity.java index d6c539912..8a4d34aad 100644 --- a/core/src/main/java/org/springframework/batch/core/domain/Entity.java +++ b/core/src/main/java/org/springframework/batch/core/domain/Entity.java @@ -72,6 +72,9 @@ public class Entity implements Serializable { * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals(Object other) { + if (other == this) { + return true; + } if (other == null) { return false; }