Skip to content

Commit

Permalink
Lukas comment improvement
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Bescos Gascon <[email protected]>
  • Loading branch information
jbescos committed Mar 18, 2024
1 parent 825aae4 commit f4684d5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions api/src/main/java/jakarta/mail/Folder.java
Original file line number Diff line number Diff line change
Expand Up @@ -623,16 +623,12 @@ public abstract boolean delete(boolean recurse)
* if this method terminates abnormally by throwing a
* MessagingException.
*
* Implementations of this method must also invoke super.close(boolean expunge)
*
* @param expunge expunges all deleted messages if this flag is true
* @throws IllegalStateException if this folder is not opened
* @throws MessagingException for other failures
* @see jakarta.mail.event.ConnectionEvent
*/
public void close(boolean expunge) throws MessagingException {
q.terminateQueue();
}
public abstract void close(boolean expunge) throws MessagingException;

/**
* Close this Folder and expunge deleted messages. <p>
Expand All @@ -655,6 +651,7 @@ public void close(boolean expunge) throws MessagingException {
@Override
public void close() throws MessagingException {
close(true);
q.terminateQueue();
}

/**
Expand Down

0 comments on commit f4684d5

Please sign in to comment.