From 6ce3eebc55cb36b87dd584b42956470f8daeefcf Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 4 Mar 2009 14:14:06 +0000 Subject: [PATCH] Fixed find bugs warnings --- .../netty/handler/codec/embedder/AbstractCodecEmbedder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/embedder/AbstractCodecEmbedder.java b/src/main/java/org/jboss/netty/handler/codec/embedder/AbstractCodecEmbedder.java index f4786e8855..7c5daef5dd 100644 --- a/src/main/java/org/jboss/netty/handler/codec/embedder/AbstractCodecEmbedder.java +++ b/src/main/java/org/jboss/netty/handler/codec/embedder/AbstractCodecEmbedder.java @@ -135,7 +135,8 @@ public abstract class AbstractCodecEmbedder implements CodecEmbedder { private void handleEvent(ChannelEvent e) { if (e instanceof MessageEvent) { - productQueue.offer(((MessageEvent) e).getMessage()); + boolean offered = productQueue.offer(((MessageEvent) e).getMessage()); + assert offered; } else if (e instanceof ExceptionEvent) { throw new CodecEmbedderException(((ExceptionEvent) e).getCause()); }