summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/events/History.java
diff options
context:
space:
mode:
authorabranson <andrew.branson@cern.ch>2011-10-18 17:00:33 +0200
committerabranson <andrew.branson@cern.ch>2011-10-18 17:00:33 +0200
commit684e01bb190c7d0b95347b732aeb3cdeda4740d7 (patch)
treef3b36e96a4e33b6e46a5e17a29e7492e9ecb4796 /source/com/c2kernel/events/History.java
parent38d30cd4f69178cef983ec13262a6f02826a9a45 (diff)
Module support
Diffstat (limited to 'source/com/c2kernel/events/History.java')
-rw-r--r--source/com/c2kernel/events/History.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/com/c2kernel/events/History.java b/source/com/c2kernel/events/History.java
index a964a72..868eaea 100644
--- a/source/com/c2kernel/events/History.java
+++ b/source/com/c2kernel/events/History.java
@@ -68,14 +68,9 @@ public class History extends RemoteMap<Event> {
synchronized (this) {
int newEventID = getLastId()+1;
newEvent.setID(newEventID);
- if (put(newEvent.getName(), newEvent) != null) {
- lastID = newEventID;
- return newEvent;
- }
- else {
- Logger.error("History.addEvent() - Event storage failed!");
- return null;
- }
+ put(newEvent.getName(), newEvent);
+ lastID = newEventID;
+ return newEvent;
}
}