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. HashCodeBuilderComment.patch
        0.5 kB
        Corey Tripp
      2. ToStringBuilderComment.patch
        0.4 kB
        Corey Tripp

        Activity

        Corey Tripp created issue -
        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.
        Corey Tripp made changes -
        Field Original Value New Value
        Attachment ToStringBuilderComment.patch [ 12335798 ]
        Corey Tripp made changes -
        Attachment HashCodeBuilderComment.patch [ 12335799 ]
        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.
        Henri Yandell made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 2.2 [ 12311702 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12374267 ] Default workflow, editable Closed status [ 12602145 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1h 14m 1 Henri Yandell 23/Jun/06 07:02
        Resolved Resolved Closed Closed
        228d 17h 44m 1 Henri Yandell 06/Feb/07 23:47

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development