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 9de4514898 Fix IDE warnings
9de4514898 is described below

commit 9de4514898f57dc960a2051fc1411c9ad322e9db
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Sep 21 16:33:20 2023 +0100

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

diff --git a/java/org/apache/jasper/compiler/Node.java 
b/java/org/apache/jasper/compiler/Node.java
index b10d5cc90d..daa1675c49 100644
--- a/java/org/apache/jasper/compiler/Node.java
+++ b/java/org/apache/jasper/compiler/Node.java
@@ -1682,7 +1682,8 @@ abstract class Node implements TagConstants {
                 this.nestedScriptingVars = vec;
                 break;
             default:
-                throw new 
IllegalArgumentException(Localizer.getMessage("jsp.error.page.invalid.varscope",
 scope));
+                throw new IllegalArgumentException(
+                        
Localizer.getMessage("jsp.error.page.invalid.varscope", 
Integer.valueOf(scope)));
             }
         }
 
@@ -1704,7 +1705,8 @@ abstract class Node implements TagConstants {
                 vec = this.nestedScriptingVars;
                 break;
             default:
-                throw new 
IllegalArgumentException(Localizer.getMessage("jsp.error.page.invalid.varscope",
 scope));
+                throw new IllegalArgumentException(
+                        
Localizer.getMessage("jsp.error.page.invalid.varscope", 
Integer.valueOf(scope)));
             }
 
             return vec;


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

Reply via email to