From 481670748497904901bdac875c22d106abaf4986 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 2 Nov 2009 09:36:51 +0000 Subject: [PATCH] Fix from audit git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@810 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- .../davmail/exception/DavMailAuthenticationException.java | 3 +-- src/java/davmail/exchange/ExchangeSession.java | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) 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);