mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8230723: Remove default constructors from java.lang and java.io
Reviewed-by: bpb, rriggs
This commit is contained in:
parent
c84e19f3ca
commit
10f1f10f2e
10 changed files with 54 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -51,6 +51,11 @@ import java.lang.ref.*;
|
|||
*/
|
||||
|
||||
public class InheritableThreadLocal<T> extends ThreadLocal<T> {
|
||||
/**
|
||||
* Creates an inheritable thread local variable.
|
||||
*/
|
||||
public InheritableThreadLocal() {}
|
||||
|
||||
/**
|
||||
* Computes the child's initial value for this inheritable thread-local
|
||||
* variable as a function of the parent's value at the time the child
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue