Resolve a warning about unboxing operation. Perform unboxing explicitly.
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 5 Oct 2011 15:44:58 +0000 (15:44 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 5 Oct 2011 15:44:58 +0000 (15:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1179274 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/IntrospectionUtils.java

index 07923fa..a027139 100644 (file)
@@ -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