Skip to content

Commit

Permalink
Remove deprecated MailFolder#getUidNext() (fixes #459)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmay committed Jun 17, 2022
1 parent b5c92fc commit 54c733e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ public boolean isSelectable() {
return folder.isSelectable();
}

@Override
public long getUidNext() { // TODO: Remove in 1.7
return getUIDNext();
}

@Override
public int getUnseenCount() {
return folder.getUnseenCount();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected void doProcess(ImapRequestLineReader request,
final boolean resetRecent = !isExamine;
response.recentResponse(mailbox.getRecentCount(resetRecent));
response.okResponse("UIDVALIDITY " + mailbox.getUidValidity(), null);
response.okResponse("UIDNEXT " + mailbox.getUidNext(), null);
response.okResponse("UIDNEXT " + mailbox.getUIDNext(), null);

int firstUnseen = mailbox.getFirstUnseen();
if (firstUnseen > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected void doProcess(ImapRequestLineReader request,
if (statusDataItems.uidNext) {
buffer.append(UIDNEXT);
buffer.append(SP);
buffer.append(folder.getUidNext());
buffer.append(folder.getUIDNext());
buffer.append(SP);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ public long getUidValidity() {
return uidValidity;
}

@Override
public long getUidNext() { // TODO: Remove in 1.7
return getUIDNext();
}

@Override
public long getUIDNext() {
return nextUid.get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ public interface MailFolder {

boolean isSelectable();

/**
* @deprecated Use #getUIDNext()
*
* Deprecated in 1.6, to be removed in 1.7 (TODO)
*/
@Deprecated
long getUidNext();

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 54c733e

Please sign in to comment.