diff --git a/src/java/davmail/exception/DavMailAuthenticationException.java b/src/java/davmail/exception/DavMailAuthenticationException.java index c292ae77..16fbcea0 100644 --- a/src/java/davmail/exception/DavMailAuthenticationException.java +++ b/src/java/davmail/exception/DavMailAuthenticationException.java @@ -18,8 +18,6 @@ */ package davmail.exception; -import davmail.BundleMessage; - /** * I18 AuthenticationException subclass. */ @@ -37,6 +35,7 @@ public class DavMailAuthenticationException extends DavMailException { * Create a DavMail authentication exception with the given BundleMessage key and arguments. * * @param key message key + * @param arguments message values */ public DavMailAuthenticationException(String key, Object... arguments) { super(key, arguments); diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 288434c4..f77220be 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -483,9 +483,8 @@ public class ExchangeSession { * Look for session cookies. * * @return true if session cookies are available - * @throws DavMailAuthenticationException on error */ - protected boolean isAuthenticated() throws DavMailAuthenticationException { + protected boolean isAuthenticated() { boolean authenticated = false; for (Cookie cookie : httpClient.getState().getCookies()) { if ("cadata".equals(cookie.getName()) || "sessionid".equals(cookie.getName())) { @@ -1095,7 +1094,7 @@ public class ExchangeSession { * @param currentFolder current folder * @return current folder or new refreshed folder * @throws IOException on error - * @deprecated no longer used: breaks Outlook IMAP + * @Deprecated no longer used: breaks Outlook IMAP */ public Folder refreshFolder(Folder currentFolder) throws IOException { Folder newFolder = getFolder(currentFolder.folderName);