Vojtech Szocs has posted comments on this change. Change subject: findbugs: Method with Boolean return explicit null ......................................................................
Patch Set 13: Hi guys, regarding JsFunctionResultHelper "Boolean getResultAsBoolean()" method: * on wrong result type, returning null is intentional behavior, as we cannot parse boolean value from non-boolean result * invokeAndGetResultAsBoolean method contains "if (result != null)" check - if not null, returns result value, otherwise returns defaultValue So using "Boolean" instead of "boolean" is intentional in getResultAsBoolean method, null indicates a problem with result type. >From Findbugs perspective, is this really a serious code style violation? -- 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: 13 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Shahar Havivi <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Alona Kaplan <[email protected]> Gerrit-Reviewer: Asaf Shakarchi <[email protected]> Gerrit-Reviewer: Daniel Erez <[email protected]> Gerrit-Reviewer: Mike Kolesnik <[email protected]> Gerrit-Reviewer: Moti Asayag <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: Shahar Havivi <[email protected]> Gerrit-Reviewer: Vojtech Szocs <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
