Simple fix typo (#10403)

Motivation:

Wrong typo in annotation at line 925.

Modifications:

Fix typo. *then -> than.

Result:

Fix typo.
This commit is contained in:
Gene 2020-07-14 16:59:02 +08:00 committed by GitHub
parent 77101ab8af
commit 9da40ec311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -922,7 +922,7 @@ public final class PlatformDependent {
}
static <T> Queue<T> newMpscQueue(final int maxCapacity) {
// Calculate the max capacity which can not be bigger then MAX_ALLOWED_MPSC_CAPACITY.
// Calculate the max capacity which can not be bigger than MAX_ALLOWED_MPSC_CAPACITY.
// This is forced by the MpscChunkedArrayQueue implementation as will try to round it
// up to the next power of two and so will overflow otherwise.
final int capacity = max(min(maxCapacity, MAX_ALLOWED_MPSC_CAPACITY), MIN_MAX_MPSC_CAPACITY);