Skip to content

Commit

Permalink
removed an unnecessary local variable for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jlim262 authored and normanmaurer committed Feb 18, 2015
1 parent 5b1b334 commit 1e09409
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public <T> B option(ChannelOption<T> option, T value) {
* 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");
Expand All @@ -196,10 +197,7 @@ public <T> B attr(AttributeKey<T> key, T value) {
attrs.put(key, value);
}
}

@SuppressWarnings("unchecked")
B b = (B) this;
return b;
return (B) this;
}

/**
Expand Down

0 comments on commit 1e09409

Please sign in to comment.