Skip to content

Commit

Permalink
[Java] Fix Checkstyle warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Aug 25, 2024
1 parent 26e2064 commit 1a11bf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class NioSelectedKeySet extends AbstractSet<SelectionKey>
/**
* Construct a key set with default capacity
*/
public NioSelectedKeySet()
NioSelectedKeySet()
{
keys = new SelectionKey[INITIAL_CAPACITY];
}
Expand All @@ -47,7 +47,7 @@ public NioSelectedKeySet()
*
* @param initialCapacity for the key set
*/
public NioSelectedKeySet(final int initialCapacity)
NioSelectedKeySet(final int initialCapacity)
{
if (initialCapacity < 0 || initialCapacity > ArrayUtil.MAX_CAPACITY)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Set;
import java.util.function.LongConsumer;
import java.util.stream.Stream;

Expand Down Expand Up @@ -72,6 +70,7 @@ class ReceiverEndPoints extends TransportPoller
PUBLIC_SELECTED_KEYS_FIELD = publicSelectKeysField;
}
}

private final NioSelectedKeySet selectedKeySet = new NioSelectedKeySet();
// FIXME: << temporary workaround

Expand Down

0 comments on commit 1a11bf3

Please sign in to comment.