removed an unnecessary local variable for consistency
This commit is contained in:
parent
a9794342e1
commit
a2f77e743e
@ -174,6 +174,7 @@ public abstract class AbstractBootstrap<B extends AbstractBootstrap<B, C>, C ext
|
|||||||
* Allow to specify an initial attribute of the newly created {@link Channel}. If the {@code value} is
|
* Allow to specify an initial attribute of the newly created {@link Channel}. If the {@code value} is
|
||||||
* {@code null}, the attribute of the specified {@code key} is removed.
|
* {@code null}, the attribute of the specified {@code key} is removed.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public <T> B attr(AttributeKey<T> key, T value) {
|
public <T> B attr(AttributeKey<T> key, T value) {
|
||||||
if (key == null) {
|
if (key == null) {
|
||||||
throw new NullPointerException("key");
|
throw new NullPointerException("key");
|
||||||
@ -187,10 +188,7 @@ public abstract class AbstractBootstrap<B extends AbstractBootstrap<B, C>, C ext
|
|||||||
attrs.put(key, value);
|
attrs.put(key, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return (B) this;
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
B b = (B) this;
|
|
||||||
return b;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user