ChannelEvent implementations don't need to be public - package private is just enough because all events can be fired and created using Channels.

This commit is contained in:
Trustin Lee 2009-02-11 06:03:00 +00:00
parent 587c0ac27f
commit 859f9a37a2
7 changed files with 14 additions and 14 deletions

View File

@ -33,7 +33,7 @@ import static org.jboss.netty.channel.Channels.*;
* @version $Rev$, $Date$
*
*/
public final class DefaultChildChannelStateEvent implements ChildChannelStateEvent {
final class DefaultChildChannelStateEvent implements ChildChannelStateEvent {
private final Channel parentChannel;
private final Channel childChannel;
@ -41,7 +41,7 @@ public final class DefaultChildChannelStateEvent implements ChildChannelStateEve
/**
* Creates a new instance.
*/
public DefaultChildChannelStateEvent(Channel parentChannel, Channel childChannel) {
DefaultChildChannelStateEvent(Channel parentChannel, Channel childChannel) {
if (parentChannel == null) {
throw new NullPointerException("parentChannel");
}

View File

@ -35,7 +35,7 @@ import org.jboss.netty.util.StackTraceSimplifier;
* @version $Rev$, $Date$
*
*/
public final class DefaultExceptionEvent implements ExceptionEvent {
final class DefaultExceptionEvent implements ExceptionEvent {
private final Channel channel;
private final Throwable cause;
@ -43,7 +43,7 @@ public final class DefaultExceptionEvent implements ExceptionEvent {
/**
* Creates a new instance.
*/
public DefaultExceptionEvent(Channel channel, Throwable cause) {
DefaultExceptionEvent(Channel channel, Throwable cause) {
if (channel == null) {
throw new NullPointerException("channel");
}

View File

@ -32,7 +32,7 @@ import static org.jboss.netty.channel.Channels.*;
*
* @version $Rev$, $Date$
*/
public final class DefaultWriteCompletionEvent implements WriteCompletionEvent {
final class DefaultWriteCompletionEvent implements WriteCompletionEvent {
private final Channel channel;
private final int writtenAmount;
@ -40,7 +40,7 @@ public final class DefaultWriteCompletionEvent implements WriteCompletionEvent {
/**
* Creates a new instance.
*/
public DefaultWriteCompletionEvent(Channel channel, int writtenAmount) {
DefaultWriteCompletionEvent(Channel channel, int writtenAmount) {
if (channel == null) {
throw new NullPointerException("channel");
}

View File

@ -31,7 +31,7 @@ package org.jboss.netty.channel;
* @version $Rev$, $Date$
*
*/
public final class DownstreamChannelStateEvent implements ChannelStateEvent {
final class DownstreamChannelStateEvent implements ChannelStateEvent {
private final Channel channel;
private final ChannelFuture future;
@ -41,7 +41,7 @@ public final class DownstreamChannelStateEvent implements ChannelStateEvent {
/**
* Creates a new instance.
*/
public DownstreamChannelStateEvent(
DownstreamChannelStateEvent(
Channel channel, ChannelFuture future,
ChannelState state, Object value) {

View File

@ -39,7 +39,7 @@ import org.jboss.netty.util.StringUtil;
* @version $Rev$, $Date$
*
*/
public final class DownstreamMessageEvent implements MessageEvent {
final class DownstreamMessageEvent implements MessageEvent {
private final Channel channel;
private final ChannelFuture future;
@ -49,7 +49,7 @@ public final class DownstreamMessageEvent implements MessageEvent {
/**
* Creates a new instance.
*/
public DownstreamMessageEvent(
DownstreamMessageEvent(
Channel channel, ChannelFuture future,
Object message, SocketAddress remoteAddress) {

View File

@ -33,7 +33,7 @@ import static org.jboss.netty.channel.Channels.*;
* @version $Rev$, $Date$
*
*/
public final class UpstreamChannelStateEvent implements ChannelStateEvent {
final class UpstreamChannelStateEvent implements ChannelStateEvent {
private final Channel channel;
private final ChannelState state;
@ -42,7 +42,7 @@ public final class UpstreamChannelStateEvent implements ChannelStateEvent {
/**
* Creates a new instance.
*/
public UpstreamChannelStateEvent(
UpstreamChannelStateEvent(
Channel channel, ChannelState state, Object value) {
if (channel == null) {

View File

@ -41,7 +41,7 @@ import org.jboss.netty.util.StringUtil;
* @version $Rev$, $Date$
*
*/
public final class UpstreamMessageEvent implements MessageEvent {
final class UpstreamMessageEvent implements MessageEvent {
private final Channel channel;
private final Object message;
@ -50,7 +50,7 @@ public final class UpstreamMessageEvent implements MessageEvent {
/**
* Creates a new instance.
*/
public UpstreamMessageEvent(
UpstreamMessageEvent(
Channel channel, Object message, SocketAddress remoteAddress) {
if (channel == null) {