You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/04/07 16:50:42 UTC

(tomcat) branch 11.0.x updated: Remove unnecessary code spotted by GitHub CoPilot

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

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


The following commit(s) were added to refs/heads/11.0.x by this push:
     new f2a1495a34 Remove unnecessary code spotted by GitHub CoPilot
f2a1495a34 is described below

commit f2a1495a34d123bf58ab2645e310b48c2df75ba5
Author: Mark Thomas <ma...@apache.org>
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 291f46724c..0954d2b8ee 100644
--- a/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
+++ b/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
@@ -366,7 +366,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org