diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 71233423..751cd97f 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -142,7 +142,6 @@ public class ExchangeSession { private final HttpClient httpClient; private final String userName; - private final String password; private boolean disableGalLookup; private static final String YYYY_MM_DD_HH_MM_SS = "yyyy/MM/dd HH:mm:ss"; @@ -170,7 +169,6 @@ public class ExchangeSession { */ ExchangeSession(String url, String userName, String password) throws IOException { this.userName = userName; - this.password = password; try { boolean isBasicAuthentication = isBasicAuthentication(url); @@ -270,18 +268,6 @@ public class ExchangeSession { return isExpired; } - /** - * Compare credentials to current session credentials. - * - * @param userName user name - * @param password user password - * @return true if credentials match - */ - public boolean checkCredentials(String userName, String password) { - return userName != null && password != null - && userName.equals(this.userName) && password.equals(this.password); - } - /** * Test authentication mode : form based or basic. * @@ -1762,8 +1748,9 @@ public class ExchangeSession { } }); for (File file : oldestFiles) { - //noinspection ResultOfMethodCallIgnored - file.delete(); + if (!file.delete()) { + LOGGER.warn("Unable to delete " + file.getAbsolutePath()); + } } } catch (Exception ex) { LOGGER.warn("Error deleting ics dump: " + ex.getMessage()); diff --git a/src/java/davmail/ldap/LdapConnection.java b/src/java/davmail/ldap/LdapConnection.java index 6d18f47e..a9614652 100644 --- a/src/java/davmail/ldap/LdapConnection.java +++ b/src/java/davmail/ldap/LdapConnection.java @@ -990,8 +990,7 @@ public class LdapConnection extends AbstractConnection { static class CompoundFilter implements LdapFilter { final Set criteria = new HashSet(); - int type; - + final int type; CompoundFilter(int filterType) { type = filterType; @@ -1166,7 +1165,7 @@ public class LdapConnection extends AbstractConnection { final String value; final int mode; final int operator; - boolean canIgnore; + final boolean canIgnore; SimpleFilter(String attributeName) { this.attributeName = attributeName;