You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/04/20 15:13:49 UTC
[james-project] 03/03: JAMES-3740 Fix a typo in UidMsnConverter
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit a6f6289562c5ed42fd7dbf8cbf8a6cb972b3a2b5
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Fri Apr 8 12:12:10 2022 +0700
JAMES-3740 Fix a typo in UidMsnConverter
---
.../apache/james/imap/processor/base/UidMsnConverter.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/processor/base/UidMsnConverter.java b/protocols/imap/src/main/java/org/apache/james/imap/processor/base/UidMsnConverter.java
index 15ef9a4a02..a2ba0fc2a0 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/processor/base/UidMsnConverter.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/processor/base/UidMsnConverter.java
@@ -38,7 +38,7 @@ import it.unimi.dsi.fastutil.longs.LongComparators;
public class UidMsnConverter {
private static final int FIRST_MSN = 1;
- private static final long INTERGER_MAX_VALUE = Integer.MAX_VALUE;
+ private static final long INTEGER_MAX_VALUE = Integer.MAX_VALUE;
@VisibleForTesting final LongArrayList uids;
@VisibleForTesting final IntArrayList uidsAsInts;
@@ -83,7 +83,7 @@ public class UidMsnConverter {
private void addAllToEmptyLongStructure(List<MessageUid> addedUids) {
uids.ensureCapacity(addedUids.size());
for (MessageUid uid : addedUids) {
- if (uid.asLong() > INTERGER_MAX_VALUE) {
+ if (uid.asLong() > INTEGER_MAX_VALUE) {
uids.clear();
switchToLongs();
addAllUnSynchronized(addedUids);
@@ -97,7 +97,7 @@ public class UidMsnConverter {
private void addAllToNonEmptyIntStructure(List<MessageUid> addedUids) {
IntAVLTreeSet tmp = new IntAVLTreeSet(uidsAsInts);
for (MessageUid uid : addedUids) {
- if (uid.asLong() > INTERGER_MAX_VALUE) {
+ if (uid.asLong() > INTEGER_MAX_VALUE) {
switchToLongs();
addAllUnSynchronized(addedUids);
return;
@@ -111,7 +111,7 @@ public class UidMsnConverter {
private void addAllToEmptyIntStructure(List<MessageUid> addedUids) {
uidsAsInts.ensureCapacity(addedUids.size());
for (MessageUid uid : addedUids) {
- if (uid.asLong() > INTERGER_MAX_VALUE) {
+ if (uid.asLong() > INTEGER_MAX_VALUE) {
uidsAsInts.clear();
switchToLongs();
addAllUnSynchronized(addedUids);
@@ -136,7 +136,7 @@ public class UidMsnConverter {
private NullableMessageSequenceNumber getMsnUnsynchronized(MessageUid uid) {
if (usesInts) {
- if (uid.asLong() > INTERGER_MAX_VALUE) {
+ if (uid.asLong() > INTEGER_MAX_VALUE) {
return NullableMessageSequenceNumber.noMessage();
}
int position = Arrays.binarySearch(uidsAsInts.elements(), 0, uidsAsInts.size(), (int) uid.asLong());
@@ -191,7 +191,7 @@ public class UidMsnConverter {
private void removeUnsynchronized(MessageUid uid) {
if (usesInts) {
- if (uid.asLong() > INTERGER_MAX_VALUE) {
+ if (uid.asLong() > INTEGER_MAX_VALUE) {
return;
}
int index = Arrays.binarySearch(uidsAsInts.elements(), 0, uidsAsInts.size(), (int) uid.asLong());
@@ -227,7 +227,7 @@ public class UidMsnConverter {
private void addUidUnSynchronized(MessageUid uid) {
if (usesInts) {
- if (uid.asLong() > INTERGER_MAX_VALUE) {
+ if (uid.asLong() > INTEGER_MAX_VALUE) {
switchToLongs();
addUidUnSynchronized(uid);
return;
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org