This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 4b00f83f37 Update Javadoc comment
4b00f83f37 is described below
commit 4b00f83f37fc56c975fa8cbbb70fbd3864759ee4
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 fe12bff837..f053ae750b 100644
--- a/java/org/apache/jasper/compiler/SmapUtil.java
+++ b/java/org/apache/jasper/compiler/SmapUtil.java
@@ -686,7 +686,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
@@ -761,6 +761,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]