You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Aditya Sharma (JIRA)" <ji...@apache.org> on 2018/12/20 09:30:00 UTC
[jira] [Created] (OFBIZ-10724) Refactor ServiceUtil.isSuccess()
method
Aditya Sharma created OFBIZ-10724:
-------------------------------------
Summary: Refactor ServiceUtil.isSuccess() method
Key: OFBIZ-10724
URL: https://issues.apache.org/jira/browse/OFBIZ-10724
Project: OFBiz
Issue Type: Improvement
Components: framework
Affects Versions: Trunk
Reporter: Aditya Sharma
Assignee: Aditya Sharma
Following lines:
{code:java}
if (ServiceUtil.isError(results) || ServiceUtil.isFailure(results)) {
return false;
}
return true;
{code}
can be changed to
{code:java}
return !(ServiceUtil.isError(results) || ServiceUtil.isFailure(results));
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)