Added ChannelLocal.<init>

This commit is contained in:
Trustin Lee 2008-12-03 00:42:10 +00:00
parent 271c41d732
commit 05b326a6e6

View File

@ -34,6 +34,13 @@ import org.jboss.netty.util.ConcurrentWeakHashMap;
public class ChannelLocal<T> {
private final ConcurrentMap<Channel, T> map = new ConcurrentWeakHashMap<Channel, T>();
/**
* Creates a {@link Channel} local variable.
*/
public ChannelLocal() {
super();
}
protected T initialValue(@SuppressWarnings("unused") Channel channel) {
return null;
}