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


The following commit(s) were added to refs/heads/8.5.x by this push:
     new d7a07bc446 Fix IDE warnings
d7a07bc446 is described below

commit d7a07bc4463c2992226f76488fee373e0228600f
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 cc46b7399a..0306b16fcc 100644
--- a/java/org/apache/jasper/compiler/Node.java
+++ b/java/org/apache/jasper/compiler/Node.java
@@ -1680,7 +1680,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)));
             }
         }
 
@@ -1702,7 +1703,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