This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 2b8d3daf60 Fix weird Object type
2b8d3daf60 is described below

commit 2b8d3daf6094175ddcc0023f757a3fe948372ff8
Author: remm <[email protected]>
AuthorDate: Tue May 26 12:00:05 2026 +0200

    Fix weird Object type
---
 java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java        | 2 +-
 java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java 
b/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java
index 7a6e228069..ee0ebc95d3 100644
--- a/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java
+++ b/java/org/apache/tomcat/util/net/openssl/OpenSSLContext.java
@@ -73,7 +73,7 @@ public class OpenSSLContext implements 
org.apache.tomcat.util.net.SSLContext {
     private static final String defaultProtocol = "TLS";
 
     private static final String BEGIN_KEY = "-----BEGIN PRIVATE KEY-----\n";
-    private static final Object END_KEY = "\n-----END PRIVATE KEY-----";
+    private static final String END_KEY = "\n-----END PRIVATE KEY-----";
 
     /**
      * X509 certificate factory instance.
diff --git a/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java 
b/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java
index a916119306..be103586b6 100644
--- a/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java
+++ b/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java
@@ -96,7 +96,7 @@ public class OpenSSLContext implements 
org.apache.tomcat.util.net.SSLContext {
     static final int OPTIONAL_NO_CA = 3;
 
     private static final String BEGIN_KEY = "-----BEGIN PRIVATE KEY-----\n";
-    private static final Object END_KEY = "\n-----END PRIVATE KEY-----";
+    private static final String END_KEY = "\n-----END PRIVATE KEY-----";
 
     private static final byte[] HTTP_11_PROTOCOL = new byte[] { 'h', 't', 't', 
'p', '/', '1', '.', '1' };
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to