Make AutoConversation IClusterable - just in case someone still uses Terracotta integration.
Make the field a simple boolean, afais there is no chance to make it 'null' Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/af34de7f Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/af34de7f Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/af34de7f Branch: refs/heads/master Commit: af34de7f6274b09e667081501b19deb8ce6db7a0 Parents: e600253 Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Thu Apr 4 17:24:56 2013 +0300 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Thu Apr 4 17:24:56 2013 +0300 ---------------------------------------------------------------------- .../org/apache/wicket/cdi/AutoConversation.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/af34de7f/wicket-cdi/src/main/java/org/apache/wicket/cdi/AutoConversation.java ---------------------------------------------------------------------- diff --git a/wicket-cdi/src/main/java/org/apache/wicket/cdi/AutoConversation.java b/wicket-cdi/src/main/java/org/apache/wicket/cdi/AutoConversation.java index 62d078f..0193a7d 100644 --- a/wicket-cdi/src/main/java/org/apache/wicket/cdi/AutoConversation.java +++ b/wicket-cdi/src/main/java/org/apache/wicket/cdi/AutoConversation.java @@ -16,10 +16,10 @@ */ package org.apache.wicket.cdi; -import java.io.Serializable; - import javax.enterprise.context.ConversationScoped; +import org.apache.wicket.util.io.IClusterable; + /** * A bean that can be used to override whether the lifecycle of the conversation should be managed * automatically or not. See {@link CdiConfiguration#setAutoConversationManagement(boolean)} for @@ -28,9 +28,9 @@ import javax.enterprise.context.ConversationScoped; * @author igor */ @ConversationScoped -public class AutoConversation implements Serializable +public class AutoConversation implements IClusterable { - private Boolean automatic; + private boolean automatic; public AutoConversation() {
