From: kkolinko Date: Wed, 5 Oct 2011 15:44:58 +0000 (+0000) Subject: Resolve a warning about unboxing operation. Perform unboxing explicitly. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=94d90e9982aa0bb47c8808cf89e90d8d0173c6f4;p=tomcat7.0 Resolve a warning about unboxing operation. Perform unboxing explicitly. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1179274 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/IntrospectionUtils.java b/java/org/apache/tomcat/util/IntrospectionUtils.java index 07923fa28..a027139c0 100644 --- a/java/org/apache/tomcat/util/IntrospectionUtils.java +++ b/java/org/apache/tomcat/util/IntrospectionUtils.java @@ -359,7 +359,8 @@ public final class IntrospectionUtils { params[1] = value; if (setPropertyMethodBool != null) { try { - return (Boolean) setPropertyMethodBool.invoke(o, params); + return ((Boolean) setPropertyMethodBool.invoke(o, + params)).booleanValue(); }catch (IllegalArgumentException biae) { //the boolean method had the wrong //parameter types. lets try the other