This is an automated email from the ASF dual-hosted git repository.
remm 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 5d716263fa Default to Object for type, just in case
5d716263fa is described below
commit 5d716263fa872798525b7c2fc69b508c8339d274
Author: remm <[email protected]>
AuthorDate: Thu Sep 14 11:14:45 2023 +0200
Default to Object for type, just in case
Found by coverity.
---
java/org/apache/catalina/startup/WebAnnotationSet.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/java/org/apache/catalina/startup/WebAnnotationSet.java
b/java/org/apache/catalina/startup/WebAnnotationSet.java
index b05ecf2c26..a7cf7de6fc 100644
--- a/java/org/apache/catalina/startup/WebAnnotationSet.java
+++ b/java/org/apache/catalina/startup/WebAnnotationSet.java
@@ -425,6 +425,8 @@ public class WebAnnotationSet {
if (type == null || type.equals(Object.class)) {
if (defaultType != null) {
type = defaultType;
+ } else {
+ type = Object.class;
}
}
return Introspection.convertPrimitiveType(type).getCanonicalName();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]