diff options
| author | Joe Darcy <darcy@openjdk.org> | 2019-09-09 10:13:42 -0700 |
|---|---|---|
| committer | Joe Darcy <darcy@openjdk.org> | 2019-09-09 10:13:42 -0700 |
| commit | 10f1f10f2effff3ecd83138fb66f8028cc4c80ea (patch) | |
| tree | 375de906671dac7d05a3cc2ec924dd471debd1f7 /src/java.base/share/classes/java/lang/InheritableThreadLocal.java | |
| parent | c84e19f3ca286386493915763bf4ad05370cb7b2 (diff) | |
| download | openjdk-10f1f10f2effff3ecd83138fb66f8028cc4c80ea.tar.gz openjdk-10f1f10f2effff3ecd83138fb66f8028cc4c80ea.zip | |
8230723: Remove default constructors from java.lang and java.io
Reviewed-by: bpb, rriggs
Diffstat (limited to 'src/java.base/share/classes/java/lang/InheritableThreadLocal.java')
| -rw-r--r-- | src/java.base/share/classes/java/lang/InheritableThreadLocal.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java.base/share/classes/java/lang/InheritableThreadLocal.java b/src/java.base/share/classes/java/lang/InheritableThreadLocal.java index 23f395c7f51..8e5f422e802 100644 --- a/src/java.base/share/classes/java/lang/InheritableThreadLocal.java +++ b/src/java.base/share/classes/java/lang/InheritableThreadLocal.java @@ -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 @@ -52,6 +52,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 * thread is created. This method is called from within the parent |
