This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new 15549ad Keep SpotBugs happy 15549ad is described below commit 15549ad7264f0b82a711730afabe28166496a8e1 Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue May 14 11:02:14 2019 +0100 Keep SpotBugs happy Code should have been fine but refactor to be safe --- java/org/apache/tomcat/util/compat/GraalCompat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/compat/GraalCompat.java b/java/org/apache/tomcat/util/compat/GraalCompat.java index bfa7b02..66263a1 100644 --- a/java/org/apache/tomcat/util/compat/GraalCompat.java +++ b/java/org/apache/tomcat/util/compat/GraalCompat.java @@ -26,7 +26,7 @@ class GraalCompat extends JreCompat { boolean result = false; try { Class<?> nativeImageClazz = Class.forName("org.graalvm.nativeimage.ImageInfo"); - result = (nativeImageClazz.getMethod("inImageCode").invoke(null) == Boolean.TRUE); + result = Boolean.TRUE.equals(nativeImageClazz.getMethod("inImageCode").invoke(null)); } catch (ClassNotFoundException e) { // Must be Graal } catch (ReflectiveOperationException | IllegalArgumentException e) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org