diff --git a/jbpm-flow/src/main/java/org/jbpm/process/core/timer/impl/GlobalTimerService.java b/jbpm-flow/src/main/java/org/jbpm/process/core/timer/impl/GlobalTimerService.java index 2c013940f3..53bf42f823 100644 --- a/jbpm-flow/src/main/java/org/jbpm/process/core/timer/impl/GlobalTimerService.java +++ b/jbpm-flow/src/main/java/org/jbpm/process/core/timer/impl/GlobalTimerService.java @@ -372,6 +372,25 @@ public String getUuid() { return null; } + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + (int) (this.getId() ^ (this.getId() >>> 32)); + return result; + } + + @Override + public boolean equals(Object obj) { + if ( this == obj ) return true; + if ( obj == null ) return false; + if ( getClass() != obj.getClass() ) return false; + final DefaultJobHandle other = (DefaultJobHandle) obj; + if (this.getId() != other.getId()) + return false; + return true; + } + } public static class DisposableCommandService implements InternalLocalRunner {