-
Bug
-
Resolution: Fixed
-
P4
-
None
-
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.
private ThreadLocalRandom() {
...
}
This makes it eligible to be marked as final and doing so will also better convey its extensibility.
- csr for
-
JDK-8283688 Make ThreadLocalRandom a final class
-
- Closed
-
- relates to
-
JDK-8283414 Update java.base to use sealed classes (umbrella)
-
- Closed
-
- links to
-
Commit openjdk/jdk/85672667
-
Review openjdk/jdk/7958
-
Review(master) openjdk/jdk/7958