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

markt-asf 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 4f30f3ff23 Fix IDE warnings
4f30f3ff23 is described below

commit 4f30f3ff23410b9764b6ca1ccf9f2c42b96b3725
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 18 20:00:27 2026 +0000

    Fix IDE warnings
---
 test/org/apache/el/TestMethodInvocationAllocation.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/org/apache/el/TestMethodInvocationAllocation.java 
b/test/org/apache/el/TestMethodInvocationAllocation.java
index 96f7727418..3f843f4c5d 100644
--- a/test/org/apache/el/TestMethodInvocationAllocation.java
+++ b/test/org/apache/el/TestMethodInvocationAllocation.java
@@ -67,7 +67,7 @@ public class TestMethodInvocationAllocation {
     private static ELContext createContext(ExpressionFactory factory) {
         StandardELContext context = new StandardELContext(factory);
         context.getVariableMapper().setVariable("map",
-                factory.createValueExpression(new 
ConcurrentHashMap<String,String>(), Object.class));
+                factory.createValueExpression(new ConcurrentHashMap<>(), 
Object.class));
         return context;
     }
 
@@ -77,7 +77,7 @@ public class TestMethodInvocationAllocation {
         Assume.assumeTrue(bean instanceof com.sun.management.ThreadMXBean);
         com.sun.management.ThreadMXBean allocationBean = 
(com.sun.management.ThreadMXBean) bean;
         Assume.assumeTrue(allocationBean.isThreadAllocatedMemorySupported());
-        long threadId = Thread.currentThread().getId();
+        long threadId = Thread.currentThread().threadId();
 
         // The memory allocated each time Class.getMethods() copies the public 
methods of the class
         Class<?> clazz = ConcurrentHashMap.class;


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

Reply via email to