8210788: Javadoc for Thread.join(long, int) should specify that it waits forever when both arguments are zero
authorigerasim
Wed, 09 Jan 2019 10:59:37 -0800
changeset 53211 eda4c6456efb
parent 53210 17539619efe6
child 53212 bccff579c2ff
8210788: Javadoc for Thread.join(long, int) should specify that it waits forever when both arguments are zero Reviewed-by: martin, rriggs
src/java.base/share/classes/java/lang/Thread.java
--- a/src/java.base/share/classes/java/lang/Thread.java	Wed Jan 09 17:40:12 2019 +0100
+++ b/src/java.base/share/classes/java/lang/Thread.java	Wed Jan 09 10:59:37 2019 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -1315,6 +1315,7 @@
     /**
      * Waits at most {@code millis} milliseconds plus
      * {@code nanos} nanoseconds for this thread to die.
+     * If both arguments are {@code 0}, it means to wait forever.
      *
      * <p> This implementation uses a loop of {@code this.wait} calls
      * conditioned on {@code this.isAlive}. As a thread terminates the