You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Qiu (JIRA)" <ji...@apache.org> on 2009/01/05 00:31:44 UTC

[jira] Created: (LANG-476) create a subclass or variation of EqualsBuilder that considers null and empty string to be the same

create a subclass or variation of EqualsBuilder that considers null and empty string to be the same
---------------------------------------------------------------------------------------------------

                 Key: LANG-476
                 URL: https://issues.apache.org/jira/browse/LANG-476
             Project: Commons Lang
          Issue Type: New Feature
    Affects Versions: 2.4
            Reporter: Michael Qiu
            Priority: Minor


Hey Guys

In my equals method I would like the EqualsBuilder to consider the null string and empty string to be the same.  Currently, I've created my own subclass of EqualsBuilder that does this.  Could this behaviour be added into apache commons lang please.  This could be achieved through either a subclass or a variation in behaviour determined by a boolean argument in the constructor. 

Thanks
Michael Qiu

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (LANG-476) create a subclass or variation of EqualsBuilder that considers null and empty string to be the same

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-476.
------------------------------

    Resolution: Won't Fix

No update.

> create a subclass or variation of EqualsBuilder that considers null and empty string to be the same
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LANG-476
>                 URL: https://issues.apache.org/jira/browse/LANG-476
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.4
>            Reporter: Michael Qiu
>            Priority: Minor
>
> Hey Guys
> In my equals method I would like the EqualsBuilder to consider the null string and empty string to be the same.  Currently, I've created my own subclass of EqualsBuilder that does this.  Could this behaviour be added into apache commons lang please.  This could be achieved through either a subclass or a variation in behaviour determined by a boolean argument in the constructor. 
> Thanks
> Michael Qiu

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (LANG-476) create a subclass or variation of EqualsBuilder that considers null and empty string to be the same

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677721#action_12677721 ] 

Henri Yandell commented on LANG-476:
------------------------------------

I'm interested in seeing your subclass. Not sure if it fits Lang, but that would help with the discussion.

> create a subclass or variation of EqualsBuilder that considers null and empty string to be the same
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LANG-476
>                 URL: https://issues.apache.org/jira/browse/LANG-476
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.4
>            Reporter: Michael Qiu
>            Priority: Minor
>
> Hey Guys
> In my equals method I would like the EqualsBuilder to consider the null string and empty string to be the same.  Currently, I've created my own subclass of EqualsBuilder that does this.  Could this behaviour be added into apache commons lang please.  This could be achieved through either a subclass or a variation in behaviour determined by a boolean argument in the constructor. 
> Thanks
> Michael Qiu

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.