Commons Lang
  1. Commons Lang
  2. LANG-264

ToStringBuilder/HashCodeBuilder javadoc code examples

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      The example code illistrating the use of ToStringBuidler and HashCodeBuilder reference a 'smoker' field of the example Person class, however the field is actually named 'isSmoker'. They propably should match each other.

      1. ToStringBuilderComment.patch
        0.4 kB
        Corey Tripp
      2. HashCodeBuilderComment.patch
        0.5 kB
        Corey Tripp

        Activity

        Hide
        Corey Tripp added a comment -

        Here's a patch to change the definitions to 'smoker' instead of 'isSmoker' from the trunk.

        Show
        Corey Tripp added a comment - Here's a patch to change the definitions to 'smoker' instead of 'isSmoker' from the trunk.
        Hide
        Henri Yandell added a comment -

        Done, thanks Corey.

        svn ci -m "Fixing isSmoker attribute name to smoker to match the co
        de example in both of these files - spotted by Corey Tripp in LANG-264"
        Sending builder/HashCodeBuilder.java
        Sending builder/ToStringBuilder.java
        Transmitting file data ..
        Committed revision 416495.

        Show
        Henri Yandell added a comment - Done, thanks Corey. svn ci -m "Fixing isSmoker attribute name to smoker to match the co de example in both of these files - spotted by Corey Tripp in LANG-264 " Sending builder/HashCodeBuilder.java Sending builder/ToStringBuilder.java Transmitting file data .. Committed revision 416495.

          People

          • Assignee:
            Unassigned
            Reporter:
            Corey Tripp
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development