1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-14 03:32:22 -05:00

Fix from audit

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@810 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-11-02 09:36:51 +00:00
parent 5975f0c9e6
commit 4816707484
2 changed files with 3 additions and 5 deletions

View File

@ -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);

View File

@ -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);