This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 867182c135 Update Javadoc comment
867182c135 is described below
commit 867182c13542e2939b80db0a60ea2b4cf93bdfda
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 852b471e68..5e6d514351 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]