Commit 742e297e authored by Unico Hommes's avatar Unico Hommes

CMS7-6213 make sure event is not modifiable after it has been sealed

parent a91deba4
/.classpath
/.idea
/.project
/.settings
/hippo-cms7-commons.iml
/target
......@@ -113,13 +113,13 @@ public class HippoEvent<E extends HippoEvent<E>> {
}
public E set(String key, Object value) {
if (isSealed()) {
throw new IllegalStateException("Event cannot be modified after it has been sealed.");
}
return put(key, value);
}
protected E put(String key, Object value) {
if (isSealed()) {
throw new IllegalStateException("Event cannot be modified after it has been sealed.");
}
if (key == null) {
return (E) this;
} else if (value == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment