[tomcat] branch 8.5.x updated: Remove unnecessary @SuppressWarnings
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 e16787351d Remove unnecessary @SuppressWarnings e16787351d is described below commit e16787351d05dc3cb6c57081e2860f23e3d3995a Author: Mark Thomas AuthorDate: Sat Sep 16 09:25:35 2023 +0100 Remove unnecessary @SuppressWarnings --- java/org/apache/tomcat/util/IntrospectionUtils.java | 1 - 1 file changed, 1 deletion(-) diff --git a/java/org/apache/tomcat/util/IntrospectionUtils.java b/java/org/apache/tomcat/util/IntrospectionUtils.java index 58ebef56d3..ab4d533b10 100644 --- a/java/org/apache/tomcat/util/IntrospectionUtils.java +++ b/java/org/apache/tomcat/util/IntrospectionUtils.java @@ -374,7 +374,6 @@ public final class IntrospectionUtils { return methods; } -@SuppressWarnings("null") // params cannot be null when comparing lengths public static Method findMethod(Class c, String name, Class params[]) { Method methods[] = findMethods(c); - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[tomcat] branch 8.5.x updated: Remove unnecessary @SuppressWarnings
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 7637860 Remove unnecessary @SuppressWarnings 7637860 is described below commit 7637860b10858acc4eadb3a00f05270b1fb05c56 Author: Mark Thomas AuthorDate: Thu Oct 3 16:54:01 2019 +0100 Remove unnecessary @SuppressWarnings --- java/javax/el/BeanELResolver.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/java/javax/el/BeanELResolver.java b/java/javax/el/BeanELResolver.java index 9372854..e4fa72a 100644 --- a/java/javax/el/BeanELResolver.java +++ b/java/javax/el/BeanELResolver.java @@ -289,9 +289,7 @@ public class BeanELResolver extends ELResolver { this.type = descriptor.getPropertyType(); } -// Can't use Class because API needs to match specification -@SuppressWarnings("rawtypes") -public Class getPropertyType() { +public Class getPropertyType() { return this.type; } - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org