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 2022/01/18 08:57:43 UTC

[tomcat] 04/04: Avoid IDE warnings when configuring Eclipse to use 11 with --release 8

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

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

commit e2691b759119e27952c03563d0dd312061dbf95b
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jan 13 16:55:54 2022 +0000

    Avoid IDE warnings when configuring Eclipse to use 11 with --release 8
---
 java/org/apache/juli/OneLineFormatter.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/java/org/apache/juli/OneLineFormatter.java b/java/org/apache/juli/OneLineFormatter.java
index c2e34d8..8c663c8 100644
--- a/java/org/apache/juli/OneLineFormatter.java
+++ b/java/org/apache/juli/OneLineFormatter.java
@@ -24,7 +24,6 @@ import java.lang.management.ThreadInfo;
 import java.lang.management.ThreadMXBean;
 import java.util.LinkedHashMap;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.logging.Formatter;
 import java.util.logging.LogManager;
 import java.util.logging.LogRecord;
@@ -272,7 +271,7 @@ public class OneLineFormatter extends Formatter {
         }
 
         @Override
-        protected boolean removeEldestEntry(Entry<Integer, String> eldest) {
+        protected boolean removeEldestEntry(Map.Entry<Integer, String> eldest) {
             return (size() > cacheSize);
         }
     }

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