This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new ef5ff8c5a4 Remove unnecessary code spotted by GitHub CoPilot
ef5ff8c5a4 is described below
commit ef5ff8c5a47e18cb7b0c897e176dfa1750b9f3d7
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 0a19ba6687..0687cf63d0 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]