[jira] [Created] (OFBIZ-10724) Refactor ServiceUtil.isSuccess() method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-10724) Refactor ServiceUtil.isSuccess() method

Nicolas Malin (Jira)
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)