diff --git a/src/java/davmail/http/DavGatewayHttpClientFacade.java b/src/java/davmail/http/DavGatewayHttpClientFacade.java index 071b515d..2bbc5a07 100644 --- a/src/java/davmail/http/DavGatewayHttpClientFacade.java +++ b/src/java/davmail/http/DavGatewayHttpClientFacade.java @@ -388,7 +388,7 @@ public final class DavGatewayHttpClientFacade { // do not follow redirects in expired sessions method.setFollowRedirects(followRedirects); int status = httpClient.executeMethod(method); - if (status == HttpStatus.SC_UNAUTHORIZED & !hasNTLM(httpClient)) { + if (status == HttpStatus.SC_UNAUTHORIZED && !hasNTLM(httpClient)) { method.releaseConnection(); LOGGER.debug("Received unauthorized at " + method.getURI() + ", retrying with NTLM"); addNTLM(httpClient); diff --git a/src/java/davmail/http/SunPKCS11ProviderHandler.java b/src/java/davmail/http/SunPKCS11ProviderHandler.java index e36a5158..dd7fef43 100644 --- a/src/java/davmail/http/SunPKCS11ProviderHandler.java +++ b/src/java/davmail/http/SunPKCS11ProviderHandler.java @@ -27,7 +27,7 @@ import java.io.ByteArrayInputStream; /** * Add the SunPKCS11 Provider. */ -public class SunPKCS11ProviderHandler { +public final class SunPKCS11ProviderHandler { private SunPKCS11ProviderHandler() { }