java.net.HttpCookie code cleanup, style, formatting, typos

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7
    • Component/s: core-libs
    • b17
    • generic
    • generic
    • Verified

      This CR is simply to cleanup the style of the java.net.HttpCookie source code.
       1) Remove extraneous newlines
       2) Use consistent javadoc comment style
       3) Fix typos in public specification, specifically:
          http->HTTP, url->URL, seperated->separated, llegal->illegal
       4) Where possible limit code to 80 columns

      Minor implementation changes
       1) Make 'name', 'assignors', and 'whenCreated', final since they are immutable
       2) Remove unnecessary StringBuilder from toNetscapeHeaderString
          ( since it is using String concatenation )
       3) Use diamond in ArrayList construction, parse()

            Assignee:
            Chris Hegarty
            Reporter:
            Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: