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 09b20ab7ea Remove unnecessary code spotted by GitHub CoPilot
09b20ab7ea is described below

commit 09b20ab7eab04897c4e19ed956308e2ce81a478d
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Apr 7 17:50:26 2026 +0100

    Remove unnecessary code spotted by GitHub CoPilot
---
 .../apache/catalina/tribes/group/interceptors/EncryptInterceptor.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java 
b/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
index f8ecc198b9..1fca4eba03 100644
--- a/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
+++ b/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
@@ -365,7 +365,7 @@ public class EncryptInterceptor extends 
ChannelInterceptorBase implements Encryp
             throw new IllegalArgumentException(
                     sm.getString("encryptInterceptor.algorithm.unsupported", 
algorithm));
 
-        } else if ("GCM".equalsIgnoreCase(algorithmMode) && 
"NOPADDING".equals(algorithmPadding)) {
+        } else if ("GCM".equals(algorithmMode) && 
"NOPADDING".equals(algorithmPadding)) {
             // Needs a specialised encryption manager to handle the 
differences between GCM and other modes
             return new GCMEncryptionManager(algorithm, new 
SecretKeySpec(encryptionKey, algorithmName), providerName);
         }


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

Reply via email to