Allon Mureinik has posted comments on this change. Change subject: findbugs: Method with Boolean return explicit null ......................................................................
Patch Set 1: I would prefer that you didn't submit this (1 inline comment) .................................................... File frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/jsni/JsFunctionResultHelper.java Line 147: }, errorHandler); Line 148: } Line 149: Line 150: public Boolean getResultAsBoolean() { Line 151: return JsFunction.RESULT_TYPE_BOOLEAN.equals(resultType) ? (Boolean) resultValue : Boolean.FALSE; The only place that uses this function is org.ovirt.engine.ui.webadmin.plugin.jsni.JsFunctionResultHelper.invokeAndGetResultAsBoolean(JsFunction, JsArray<?>, ErrorHandler, boolean) By tracking back the call stack to updateActionButtonCommand, it seems that if null is returned from getResultAsBoolean, you should return true and not false. Line 152: } Line 153: -- To view, visit http://gerrit.ovirt.org/14227 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ibe28d8e00e2597cdbfd59c0acbb3c7dd8d08c99a Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Shahar Havivi <shav...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Asaf Shakarchi <a...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Mike Kolesnik <mkole...@redhat.com> Gerrit-Reviewer: Moti Asayag <masa...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches