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 3e6abee  Add change log entry. Fix Checkstyle and IDE warnings.
3e6abee is described below

commit 3e6abeeec3f88fad7825880a5a963e1be34f6204
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Sep 28 09:06:23 2021 +0100

    Add change log entry. Fix Checkstyle and IDE warnings.
---
 test/org/apache/juli/TestThreadNameCache.java | 5 +++--
 webapps/docs/changelog.xml                    | 4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/test/org/apache/juli/TestThreadNameCache.java 
b/test/org/apache/juli/TestThreadNameCache.java
index 8764c0d..d32efb81 100644
--- a/test/org/apache/juli/TestThreadNameCache.java
+++ b/test/org/apache/juli/TestThreadNameCache.java
@@ -18,11 +18,12 @@ package org.apache.juli;
 
 import java.lang.reflect.Method;
 import java.util.concurrent.CountDownLatch;
+
 import org.junit.Assert;
 import org.junit.Test;
 
 public class TestThreadNameCache {
-    private int threadId;
+    private Integer threadId;
 
     @Test
     public void testCache() throws Exception {
@@ -37,7 +38,7 @@ public class TestThreadNameCache {
             @Override
             public void run() {
                 setName(THREAD_NAME);
-                threadId= (int) getId();
+                threadId = Integer.valueOf((int) getId());
                 threadIdLatch.countDown();
                 try {
                     cacheLatch.await();
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index c5faa46..88a8279 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -138,6 +138,10 @@
         correctly for directory lookups whether or not the provided directory
         name includes the trailing <code>/</code>. (markt)
       </fix>
+      <fix>
+        <pr>451</pr>: Improve the usefulness of the thread name cache used in
+        JULI. Pull request provided by t-gergely. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to