This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new 1e829dec6d Fix IDE warnings 1e829dec6d is described below commit 1e829dec6de264b17772adfa38e5d9a4c9d5987e Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Feb 12 14:14:53 2024 +0000 Fix IDE warnings --- java/org/apache/catalina/session/StandardManager.java | 2 +- java/org/apache/coyote/ajp/AjpProcessor.java | 2 +- java/org/apache/jasper/JspC.java | 2 +- java/org/apache/tomcat/util/net/openssl/panama/OpenSSLEngine.java | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/java/org/apache/catalina/session/StandardManager.java b/java/org/apache/catalina/session/StandardManager.java index a72c2ac8a0..d35e62290c 100644 --- a/java/org/apache/catalina/session/StandardManager.java +++ b/java/org/apache/catalina/session/StandardManager.java @@ -223,7 +223,7 @@ public class StandardManager extends ManagerBase { // Expire all the sessions we just wrote if (log.isDebugEnabled()) { - log.debug(sm.getString("standardManager.expiringSessions", list.size())); + log.debug(sm.getString("standardManager.expiringSessions", Integer.toString(list.size()))); } for (StandardSession session : list) { try { diff --git a/java/org/apache/coyote/ajp/AjpProcessor.java b/java/org/apache/coyote/ajp/AjpProcessor.java index cf693aae32..e7dc122827 100644 --- a/java/org/apache/coyote/ajp/AjpProcessor.java +++ b/java/org/apache/coyote/ajp/AjpProcessor.java @@ -387,7 +387,7 @@ public class AjpProcessor extends AbstractProcessor { // Unexpected packet type. Unread body packets should have // been swallowed in finish(). if (getLog().isDebugEnabled()) { - getLog().debug(sm.getString("ajpprocessor.unexpectedMessage", type)); + getLog().debug(sm.getString("ajpprocessor.unexpectedMessage", Integer.toString(type))); } setErrorState(ErrorState.CLOSE_CONNECTION_NOW, null); break; diff --git a/java/org/apache/jasper/JspC.java b/java/org/apache/jasper/JspC.java index cd955fb191..e31918cca5 100644 --- a/java/org/apache/jasper/JspC.java +++ b/java/org/apache/jasper/JspC.java @@ -1349,7 +1349,7 @@ public class JspC extends Task implements Options { @Override public void execute() { if(log.isDebugEnabled()) { - log.debug(Localizer.getMessage("jspc.start", pages.size())); + log.debug(Localizer.getMessage("jspc.start", Integer.toString(pages.size()))); } try { diff --git a/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLEngine.java b/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLEngine.java index 46cfce2b8a..6099620f72 100644 --- a/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLEngine.java +++ b/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLEngine.java @@ -1245,7 +1245,8 @@ public final class OpenSSLEngine extends SSLEngine implements SSLUtil.ProtocolIn URL url = (new URI(urlString)).toURL(); ocspResponse = processOCSPRequest(url, issuer, x509, x509ctx, localArenal); if (log.isDebugEnabled()) { - log.debug(sm.getString("engine.ocspResponse", urlString, ocspResponse)); + log.debug(sm.getString("engine.ocspResponse", urlString, + Integer.toString(ocspResponse))); } } catch (MalformedURLException | URISyntaxException e) { log.warn(sm.getString("engine.invalidOCSPURL", urlString)); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org