Fix typo in inner-class name
Motivation: There is a typo in the inner-class name. Modifications: Fix typo. Result: One typo less. Fixes [#6185].
This commit is contained in:
parent
72c9fc2084
commit
2368f238ad
@ -33,7 +33,7 @@ public final class DefaultEventExecutorChooserFactory implements EventExecutorCh
|
|||||||
@Override
|
@Override
|
||||||
public EventExecutorChooser newChooser(EventExecutor[] executors) {
|
public EventExecutorChooser newChooser(EventExecutor[] executors) {
|
||||||
if (isPowerOfTwo(executors.length)) {
|
if (isPowerOfTwo(executors.length)) {
|
||||||
return new PowerOfTowEventExecutorChooser(executors);
|
return new PowerOfTwoEventExecutorChooser(executors);
|
||||||
} else {
|
} else {
|
||||||
return new GenericEventExecutorChooser(executors);
|
return new GenericEventExecutorChooser(executors);
|
||||||
}
|
}
|
||||||
@ -43,11 +43,11 @@ public final class DefaultEventExecutorChooserFactory implements EventExecutorCh
|
|||||||
return (val & -val) == val;
|
return (val & -val) == val;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final class PowerOfTowEventExecutorChooser implements EventExecutorChooser {
|
private static final class PowerOfTwoEventExecutorChooser implements EventExecutorChooser {
|
||||||
private final AtomicInteger idx = new AtomicInteger();
|
private final AtomicInteger idx = new AtomicInteger();
|
||||||
private final EventExecutor[] executors;
|
private final EventExecutor[] executors;
|
||||||
|
|
||||||
PowerOfTowEventExecutorChooser(EventExecutor[] executors) {
|
PowerOfTwoEventExecutorChooser(EventExecutor[] executors) {
|
||||||
this.executors = executors;
|
this.executors = executors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user