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

markt-asf 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 533b15b559 Update Javadoc comment
533b15b559 is described below

commit 533b15b5594c6b81a2944808b69230ad8741d789
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jun 1 09:23:43 2026 +0100

    Update Javadoc comment
---
 java/org/apache/jasper/compiler/SmapUtil.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/jasper/compiler/SmapUtil.java 
b/java/org/apache/jasper/compiler/SmapUtil.java
index 052d1f43a4..d58668ab2c 100644
--- a/java/org/apache/jasper/compiler/SmapUtil.java
+++ b/java/org/apache/jasper/compiler/SmapUtil.java
@@ -680,7 +680,7 @@ public class SmapUtil {
      * attribute from the class file or an external .smap resource.
      * @param className the fully qualified class name
      * @param cl the class loader to use for loading the resource
-     * @return the parsed SmapStratum, or {@code null} if no SMAP data is found
+     * @return the parsed SmapStratum, or {@code null} if no or invalid SMAP 
data is found
      */
     public static SmapStratum loadSmap(String className, ClassLoader cl) {
         // Extract SMAP from class file. First line "SMAP" is not included
@@ -755,6 +755,7 @@ public class SmapUtil {
     }
 
 
+    @SuppressWarnings("null") // is cannot be null when used
     private static String getSmap(String className, ClassLoader cl) {
         Charset encoding = StandardCharsets.ISO_8859_1;
         boolean found = false;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to