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 5cfec37b9e Fix IDE warnings
5cfec37b9e is described below

commit 5cfec37b9e043d8f4a8450d051bdfc0f5643bdc7
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sat Feb 3 10:48:27 2024 +0000

    Fix IDE warnings
---
 java/org/apache/jasper/compiler/Generator.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/jasper/compiler/Generator.java 
b/java/org/apache/jasper/compiler/Generator.java
index 5c86152b62..b305431ce7 100644
--- a/java/org/apache/jasper/compiler/Generator.java
+++ b/java/org/apache/jasper/compiler/Generator.java
@@ -625,7 +625,7 @@ class Generator {
         // Packages is never empty because o.a.j.Constants.STANDARD_IMPORTS
         // contains 3 packages and is always added to the imports.
         out.printin("_jspx_imports_packages = new java.util.LinkedHashSet<>(");
-        out.print(Integer.valueOf(packages.size()));
+        out.print(Integer.toString(packages.size()));
         out.print(");");
         out.println();
         for (String packageName : packages) {
@@ -639,7 +639,7 @@ class Generator {
             out.println();
         } else {
             out.printin("_jspx_imports_classes = new 
java.util.LinkedHashSet<>(");
-            out.print(Integer.valueOf(classes.size()));
+            out.print(Integer.toString(classes.size()));
             out.print(");");
             out.println();
             for (String className : classes) {


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

Reply via email to