[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-3359) Activate PMD rule PositionLiteralsFirstInComparisons: Position literals first in String comparisons - that way if the String is null you won't get a NullPointerException, it'll just return false.

Denis Golovin (JIRA) jira-events at lists.jboss.org
Mon Apr 6 15:50:22 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBIDE-3359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Golovin updated JBIDE-3359:
---------------------------------

    Component/s: Cleanup


> Activate PMD rule PositionLiteralsFirstInComparisons: Position literals first in String comparisons - that way if the String is null you won't get a NullPointerException, it'll just return false.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-3359
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3359
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: Cleanup
>    Affects Versions: 3.0.0.cr1
>            Reporter: Denis Golovin
>            Assignee: Denis Golovin
>             Fix For: 3.1.0
>
>
> simple search for equals\("\w"\) shows 600 matches in workspace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list