From f4684d5593b0bf3375e1933863df645572917ce6 Mon Sep 17 00:00:00 2001 From: Jorge Bescos Gascon Date: Mon, 18 Mar 2024 09:57:02 +0100 Subject: [PATCH] Lukas comment improvement Signed-off-by: Jorge Bescos Gascon --- api/src/main/java/jakarta/mail/Folder.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/api/src/main/java/jakarta/mail/Folder.java b/api/src/main/java/jakarta/mail/Folder.java index 16c34754..38dcf8c0 100644 --- a/api/src/main/java/jakarta/mail/Folder.java +++ b/api/src/main/java/jakarta/mail/Folder.java @@ -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.

@@ -655,6 +651,7 @@ public void close(boolean expunge) throws MessagingException { @Override public void close() throws MessagingException { close(true); + q.terminateQueue(); } /**