Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7115150

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7
    • 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()

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: