Skip to content

Commit

Permalink
Remove static wildcard imports in EpollDomainSocketChannelConfig (net…
Browse files Browse the repository at this point in the history
…ty#9066)

Motivation

These aren't needed, only one field from each class is used. It also showed as an ambiguous identifier compilation error in my IDE even though javac is obviously fine with it.

Modifications

Static-import explicit ChannelOption fields in EpollDomainSocketChannelConfig instead of using .* wildcard.

Result

Cleaner / more consistent code.
  • Loading branch information
njhill authored and normanmaurer committed Apr 18, 2019
1 parent e01c4bc commit 6248b24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

import java.util.Map;

import static io.netty.channel.ChannelOption.*;
import static io.netty.channel.unix.UnixChannelOption.*;
import static io.netty.channel.ChannelOption.ALLOW_HALF_CLOSURE;
import static io.netty.channel.unix.UnixChannelOption.DOMAIN_SOCKET_READ_MODE;

public final class EpollDomainSocketChannelConfig extends EpollChannelConfig
implements DomainSocketChannelConfig {
Expand Down

0 comments on commit 6248b24

Please sign in to comment.