removed an unnecessary local variable for consistency

This commit is contained in:
jongyoon lim 2015-02-17 22:12:40 +09:00 committed by Norman Maurer
parent a9794342e1
commit a2f77e743e

View File

@ -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
* {@code null}, the attribute of the specified {@code key} is removed.
*/
@SuppressWarnings("unchecked")
public <T> B attr(AttributeKey<T> key, T value) {
if (key == null) {
throw new NullPointerException("key");
@ -187,10 +188,7 @@ public abstract class AbstractBootstrap<B extends AbstractBootstrap<B, C>, C ext
attrs.put(key, value);
}
}
@SuppressWarnings("unchecked")
B b = (B) this;
return b;
return (B) this;
}
/**