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

(doc thread) New ThreadLocal SerialNum example still has problems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6, 6u23, 6u24
    • core-libs
    • b91
    • generic, x86
    • generic, linux, windows_7

      6202942 rfe 4 18M 1 Fix Delivered pete.soper java/lang (spec thread) ThreadLocal example should use generics and autoboxing

      Comment added by (###@###.###) :
      Wouldn't it be slightly better for the example to use getAndIncrement() rather than getAndAdd(1)? And a few finals wouldn't go amiss. And an @Override.

      Oh and the HTML is slightly wrong, The disappears, so the example makes even less sense than it did beforehand. {@code } would make source and docs readable.

            psoper Pete Soper (Inactive)
            psoper Pete Soper (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: