Make ThreadLocalRandom a final class

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      The class java.util.concurrent.ThreadLocalRandom is a public class. However, it has one sole constructor which is private:

      private ThreadLocalRandom() {
      ...
      }

      This makes it eligible to be marked as final and doing so will also better convey its extensibility.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: