[jira] [Created] (OFBIZ-11886) All single line statements in checkstyle

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

[jira] [Created] (OFBIZ-11886) All single line statements in checkstyle

Nicolas Malin (Jira)
Suraj Khurana created OFBIZ-11886:
-------------------------------------

             Summary: All single line statements in checkstyle
                 Key: OFBIZ-11886
                 URL: https://issues.apache.org/jira/browse/OFBIZ-11886
             Project: OFBiz
          Issue Type: Sub-task
          Components: ALL COMPONENTS
            Reporter: Suraj Khurana
            Assignee: Suraj Khurana


We need to add this module in checkstyle.xml

<module name="NeedBraces">
    <property name="allowSingleLineStatement" value="true"/>
 </module>

After this, single line statements like:

if (Debug.verboseOn()) Debug.logVerbose(...)

Will be considered safe.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)