[
https://issues.apache.org/jira/browse/OFBIZ-11886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17157209#comment-17157209 ]
Jacques Le Roux commented on OFBIZ-11886:
-----------------------------------------
Hi Suraj,
I posted a message on the dev ML in [your "Single line statements - checkstyle" thread|
https://markmail.org/message/ahf373lljgkypkxn]. Here is the patch I speak about there: [^OFBIZ-11886-format-LoginServices-checkNewPassword.patch]
> Allow 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
> Priority: Major
> Attachments: OFBIZ-11886-format-LoginServices-checkNewPassword.patch, OFBIZ-11886.patch
>
>
> 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)