1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-14 11:42:23 -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; package davmail.exception;
import davmail.BundleMessage;
/** /**
* I18 AuthenticationException subclass. * I18 AuthenticationException subclass.
*/ */
@ -37,6 +35,7 @@ public class DavMailAuthenticationException extends DavMailException {
* Create a DavMail authentication exception with the given BundleMessage key and arguments. * Create a DavMail authentication exception with the given BundleMessage key and arguments.
* *
* @param key message key * @param key message key
* @param arguments message values
*/ */
public DavMailAuthenticationException(String key, Object... arguments) { public DavMailAuthenticationException(String key, Object... arguments) {
super(key, arguments); super(key, arguments);

View File

@ -483,9 +483,8 @@ public class ExchangeSession {
* Look for session cookies. * Look for session cookies.
* *
* @return true if session cookies are available * @return true if session cookies are available
* @throws DavMailAuthenticationException on error
*/ */
protected boolean isAuthenticated() throws DavMailAuthenticationException { protected boolean isAuthenticated() {
boolean authenticated = false; boolean authenticated = false;
for (Cookie cookie : httpClient.getState().getCookies()) { for (Cookie cookie : httpClient.getState().getCookies()) {
if ("cadata".equals(cookie.getName()) || "sessionid".equals(cookie.getName())) { if ("cadata".equals(cookie.getName()) || "sessionid".equals(cookie.getName())) {
@ -1095,7 +1094,7 @@ public class ExchangeSession {
* @param currentFolder current folder * @param currentFolder current folder
* @return current folder or new refreshed folder * @return current folder or new refreshed folder
* @throws IOException on error * @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 { public Folder refreshFolder(Folder currentFolder) throws IOException {
Folder newFolder = getFolder(currentFolder.folderName); Folder newFolder = getFolder(currentFolder.folderName);