Skip to content

Commit 79c92ea

Browse files
author
Ivan Gerasimov
committed
8210788: Javadoc for Thread.join(long, int) should specify that it waits forever when both arguments are zero
Reviewed-by: martin, rriggs
1 parent a047d85 commit 79c92ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/java.base/share/classes/java/lang/Thread.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1315,6 +1315,7 @@ public final synchronized void join(final long millis)
13151315
/**
13161316
* Waits at most {@code millis} milliseconds plus
13171317
* {@code nanos} nanoseconds for this thread to die.
1318+
* If both arguments are {@code 0}, it means to wait forever.
13181319
*
13191320
* <p> This implementation uses a loop of {@code this.wait} calls
13201321
* conditioned on {@code this.isAlive}. As a thread terminates the

0 commit comments

Comments
 (0)