markt-asf commented on a change in pull request #273: URL: https://github.com/apache/tomcat/pull/273#discussion_r413715418
########## File path: java/jakarta/el/Util.java ########## @@ -380,11 +380,12 @@ static Method findMethod(Class<?> clazz, Object base, String methodName, private static final String paramString(Class<?>[] types) { if (types != null) { StringBuilder sb = new StringBuilder(); - for (int i = 0; i < types.length; i++) { - if (types[i] == null) { + for (Class<?> type : types) { + if (type == null) { sb.append("null, "); - } else { - sb.append(types[i].getName()).append(", "); + } + else { Review comment: These formatting changes need to be removed from this PR. Tomcat coding convention is to use `} else {` on a single line. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org