Use camel-case in NioEventLoop (#8713)
Motivation: Java uses camel-case by convention. Modification: Consistently use camel-case. Result: More consistent code styling.
This commit is contained in:
parent
400b3081b0
commit
ef5b454a00
@ -59,7 +59,7 @@ public final class NioEventLoop extends SingleThreadEventLoop {
|
|||||||
|
|
||||||
private static final int CLEANUP_INTERVAL = 256; // XXX Hard-coded value, but won't need customization.
|
private static final int CLEANUP_INTERVAL = 256; // XXX Hard-coded value, but won't need customization.
|
||||||
|
|
||||||
private static final boolean DISABLE_KEYSET_OPTIMIZATION =
|
private static final boolean DISABLE_KEY_SET_OPTIMIZATION =
|
||||||
SystemPropertyUtil.getBoolean("io.netty.noKeySetOptimization", false);
|
SystemPropertyUtil.getBoolean("io.netty.noKeySetOptimization", false);
|
||||||
|
|
||||||
private static final int MIN_PREMATURE_SELECTOR_RETURNS = 3;
|
private static final int MIN_PREMATURE_SELECTOR_RETURNS = 3;
|
||||||
@ -79,8 +79,8 @@ public final class NioEventLoop extends SingleThreadEventLoop {
|
|||||||
// - https://github.com/netty/netty/issues/203
|
// - https://github.com/netty/netty/issues/203
|
||||||
static {
|
static {
|
||||||
final String key = "sun.nio.ch.bugLevel";
|
final String key = "sun.nio.ch.bugLevel";
|
||||||
final String buglevel = SystemPropertyUtil.get(key);
|
final String bugLevel = SystemPropertyUtil.get(key);
|
||||||
if (buglevel == null) {
|
if (bugLevel == null) {
|
||||||
try {
|
try {
|
||||||
AccessController.doPrivileged(new PrivilegedAction<Void>() {
|
AccessController.doPrivileged(new PrivilegedAction<Void>() {
|
||||||
@Override
|
@Override
|
||||||
@ -102,7 +102,7 @@ public final class NioEventLoop extends SingleThreadEventLoop {
|
|||||||
SELECTOR_AUTO_REBUILD_THRESHOLD = selectorAutoRebuildThreshold;
|
SELECTOR_AUTO_REBUILD_THRESHOLD = selectorAutoRebuildThreshold;
|
||||||
|
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("-Dio.netty.noKeySetOptimization: {}", DISABLE_KEYSET_OPTIMIZATION);
|
logger.debug("-Dio.netty.noKeySetOptimization: {}", DISABLE_KEY_SET_OPTIMIZATION);
|
||||||
logger.debug("-Dio.netty.selectorAutoRebuildThreshold: {}", SELECTOR_AUTO_REBUILD_THRESHOLD);
|
logger.debug("-Dio.netty.selectorAutoRebuildThreshold: {}", SELECTOR_AUTO_REBUILD_THRESHOLD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -169,7 +169,7 @@ public final class NioEventLoop extends SingleThreadEventLoop {
|
|||||||
throw new ChannelException("failed to open a new selector", e);
|
throw new ChannelException("failed to open a new selector", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DISABLE_KEYSET_OPTIMIZATION) {
|
if (DISABLE_KEY_SET_OPTIMIZATION) {
|
||||||
return new SelectorTuple(unwrappedSelector);
|
return new SelectorTuple(unwrappedSelector);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user